CSS named colour

Red

#ff0000

A CSS named colour: red is valid anywhere a colour is expected.

RGB
rgb(255 0 0)
HSL
0°, 100%, 50%
OKLCh
62.8% 0.258 29.2

Open in the picker

Red in every format

Web & CSSThe everyday formats for stylesheets and design tools.

Hex#ff0000
RGBrgb(255 0 0)
RGB legacyrgb(255, 0, 0)
RGB percentrgb(100% 0% 0%)
HSLhsl(0 100% 50%)
HSL legacyhsl(0, 100%, 50%)
HSV / HSBhsv(0, 100%, 100%)
HWBhwb(0 0% 0%)
Nearest namered
CMYKcmyk(0%, 100%, 100%, 0%)Naive conversion. Real print work needs an ICC profile.

Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.

OKLChoklch(62.796% 0.25768 29.234)Modern CSS colour space for even palettes — better than HSL when building scales.
OKLaboklab(62.796% 0.22486 0.12585)
CIE LChlch(54.291% 106.837 40.858)
CIE Lablab(54.291% 80.805 69.891)
Display P3color(display-p3 0.9175 0.2003 0.1386)
Rec. 2020color(rec2020 0.792 0.231 0.0738)
srgb-linearcolor(srgb-linear 1 0 0)Light-linear sRGB — the same numbers a shader wants for maths.
CIE XYZ (D65)color(xyz-d65 0.4124 0.2126 0.0193)

ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.

GLSL vec3 — sRGBvec3(1.0, 0.0, 0.0)Encoded values. Use when writing straight to the framebuffer.
GLSL vec3 — linearvec3(1.0, 0.0, 0.0)Light-linear values. Use for lighting, blending and mixing.
GLSL vec4 — sRGBvec4(1.0, 0.0, 0.0, 1.0)
GLSL vec4 — linearvec4(1.0, 0.0, 0.0, 1.0)
GLSL ivec3ivec3(255, 0, 0)
HLSL float3 — sRGBfloat3(1.0, 0.0, 0.0)
HLSL float3 — linearfloat3(1.0, 0.0, 0.0)
HLSL float4 — sRGBfloat4(1.0, 0.0, 0.0, 1.0)
HLSL half4 — sRGBhalf4(1.0, 0.0, 0.0, 1.0)
WGSL vec3f — sRGBvec3f(1.0, 0.0, 0.0)
WGSL vec4f — sRGBvec4f(1.0, 0.0, 0.0, 1.0)
WGSL vec3<f32> — linearvec3<f32>(1.0, 0.0, 0.0)

Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.

Unity Colornew Color(1.0f, 0.0f, 0.0f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255.
Unity Color32new Color32(255, 0, 0, 255)
Unreal FLinearColorFLinearColor(1.0f, 0.0f, 0.0f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255.
Unreal FColorFColor(255, 0, 0, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor.
Godot ColorColor(1, 0, 0, 1)
Flutter ColorColor(0xFFFF0000)Packed ARGB, so alpha comes first.
Android ColorColor.rgb(255, 0, 0)
SwiftUI ColorColor(red: 1, green: 0, blue: 0)
UIKit UIColorUIColor(red: 1, green: 0, blue: 0, alpha: 1)

Raw valuesPacked integers and plain arrays.

0x hex0xFF0000
0x hex (ARGB)0xFFFF0000
Array 0–1[1, 0, 0]
Array 0–255[255, 0, 0]
Decimal integer16711680

Contrast and accessibility

WCAG 2 ratios are what audits and legislation reference. APCA is shown alongside because WCAG 2 is known to misjudge mid-tone backgrounds, and it is the basis of the WCAG 3 draft.

PairingWCAG 2 ratioLevelAPCASuitable for
Red on white4.00:1AA LargeLc 64Headings and large text
Red on black5.25:1AALc 38Non-text elements only

Red text on a white background

Red text on a black background

White text on Red

Black text on Red

Tonal scale

Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.

  • 50#fff0eb
  • 100#ffe2db
  • 200#ffcabf
  • 300#ffa798
  • 400#ff7260
  • 500#ff0e08
  • 600#dd0000
  • 700#b40000
  • 800#920000
  • 900#750000
  • 950#490000

Tints and shades

Mixed perceptually toward white and black, so the steps feel evenly spaced.

  • Tint 1#ff5544
  • Tint 2#ff7e6c
  • Tint 3#ffa191
  • Tint 4#ffc1b6
  • Tint 5#ffe1da
  • Shade 1#c80000
  • Shade 2#940000
  • Shade 3#630000
  • Shade 4#360000
  • Shade 5#0f0000

Colours that work with Red

Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.

  • #009cb2
  • #00a836
  • #5577ff
  • #f50084
  • #d06800

Closest CSS names

  • redexact match
  • orangeredΔEok 0.050
  • crimsonΔEok 0.077
  • tomatoΔEok 0.093
  • indianredΔEok 0.117
  • chocolateΔEok 0.126