#120220#120220

#120220 is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 14.9% C 0.066 H 306.2°. Best body text is #FFFFFF at 19.90:1 contrast (WCAG AA passes).

Color values

HEX#120220
RGBrgb(18, 2, 32)
HSLhsl(272, 88%, 7%)
HSVhsv(272, 94%, 13%)
CMYKcmyk(43.8%, 93.8%, 0%, 87.5%)
CIE-LABlab(2.50, 11.03, -14.87)
CIE-LCHlch(2.50, 18.51, 306.56°)
OKLaboklab(14.88% 0.0389 -0.0532)
OKLCHoklch(14.88% 0.066 306.2)
XYZxyz(0.5318, 0.2763, 1.3915)
Luminance0.0028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120220 #102002
analogous
#030220 #120220 #20021F
triadic
#120220 #201202 #022012
tetradic
#120220 #200302 #102002 #021F20
square
#120220 #200302 #102002 #021F20
split-complementary
#120220 #1F2002 #022003
monochromatic
#10021D #10021D #120220 #32065A #530993

Accessibility & contrast

On white

19.90
#120220 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#120220 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120220
19.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120220#FFFFFF#000000##FFFFFF
##1202201.0019.901.0619.90
#FFFFFF19.901.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000921
Deuteranopia (green-blind)
#00091F
Tritanopia (blue-blind)
#0F070F
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #120220;
/* rgb */ color: rgb(18, 2, 32);
/* oklch */ color: oklch(14.9% 0.066 306.2);
Tailwind
colors: {
  custom: {
    50: '#4f475b',
    500: '#120220',
    950: '#000000',
  },
}
SCSS
$custom: #120220;
$custom-light: #4f475b;
$custom-dark: #000000;
JSON
{
  "hex": "#120220",
  "rgb": {
    "r": 18,
    "g": 2,
    "b": 32
  },
  "hsl": {
    "h": 272,
    "s": 88.235,
    "l": 6.667
  },
  "oklch": {
    "l": 0.14878,
    "c": 0.06594,
    "h": 306.2
  },
  "luminance": 0.00276
}

Semantic roles & 50–950 ramp

primary
#120220
secondary
#3C6618
accent
#FE298D
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#020004
muted
#787779

Preview Lab

Preview with #120220

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

Preview Lab → · Contrast checker → · Palette generator →

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