#200228#200228

#200228 is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.2% C 0.081 H 318.6°. Best body text is #FFFFFF at 19.08:1 contrast (WCAG AA passes).

Color values

HEX#200228
RGBrgb(32, 2, 40)
HSLhsl(287, 90%, 8%)
HSVhsv(287, 95%, 16%)
CMYKcmyk(20%, 95%, 0%, 84.3%)
CIE-LABlab(4.55, 21.00, -17.79)
CIE-LCHlch(4.55, 27.52, 319.73°)
OKLaboklab(18.22% 0.0605 -0.0533)
OKLCHoklch(18.22% 0.081 318.6)
XYZxyz(1.0003, 0.5037, 2.0516)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#200228 #0A2802
analogous
#0D0228 #200228 #28021D
triadic
#200228 #282002 #022820
tetradic
#200228 #280D02 #0A2802 #021D28
square
#200228 #280D02 #0A2802 #021D28
split-complementary
#200228 #1D2802 #02280D
monochromatic
#17011D #17011D #200228 #4F0562 #7D089D

Accessibility & contrast

On white

19.08
#200228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#200228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #200228
19.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##200228#FFFFFF#000000##FFFFFF
##2002281.0019.081.1019.08
#FFFFFF19.081.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E29
Deuteranopia (green-blind)
#031127
Tritanopia (blue-blind)
#200814
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #200228;
/* rgb */ color: rgb(32, 2, 40);
/* oklch */ color: oklch(18.2% 0.081 318.6);
Tailwind
colors: {
  custom: {
    50: '#5c4762',
    500: '#200228',
    950: '#000000',
  },
}
SCSS
$custom: #200228;
$custom-light: #5c4762;
$custom-dark: #000000;
JSON
{
  "hex": "#200228",
  "rgb": {
    "r": 32,
    "g": 2,
    "b": 40
  },
  "hsl": {
    "h": 287.368,
    "s": 90.476,
    "l": 8.235
  },
  "oklch": {
    "l": 0.18216,
    "c": 0.08061,
    "h": 318.6
  },
  "luminance": 0.00504
}

Semantic roles & 50–950 ramp

primary
#200228
secondary
#2A6D19
accent
#FF2956
background
#F5F4F5
surface
#E9E6EA
border
#C5C2C6
text
#040005
muted
#797779

Preview Lab

Preview with #200228

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#200228 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva