#120222#120222

#120222 is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.1% C 0.068 H 303.9°. Best body text is #FFFFFF at 19.86:1 contrast (WCAG AA passes).

Color values

HEX#120222
RGBrgb(18, 2, 34)
HSLhsl(270, 89%, 7%)
HSVhsv(270, 94%, 13%)
CMYKcmyk(47.1%, 94.1%, 0%, 86.7%)
CIE-LABlab(2.60, 11.74, -16.29)
CIE-LCHlch(2.60, 20.08, 305.77°)
OKLaboklab(15.1% 0.0382 -0.0568)
OKLCHoklch(15.1% 0.068 303.9)
XYZxyz(0.5598, 0.2875, 1.5391)
Luminance0.0029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120222 #122202
analogous
#020222 #120222 #220222
triadic
#120222 #221202 #022212
tetradic
#120222 #220202 #122202 #022222
square
#120222 #220202 #122202 #022222
split-complementary
#120222 #222202 #022202
monochromatic
#0F021D #0F021D #120222 #31055C #4F0996

Accessibility & contrast

On white

19.86
#120222 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120222
19.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120222#FFFFFF#000000##FFFFFF
##1202221.0019.861.0619.86
#FFFFFF19.861.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000923
Deuteranopia (green-blind)
#000921
Tritanopia (blue-blind)
#0F0810
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #120222;
/* rgb */ color: rgb(18, 2, 34);
/* oklch */ color: oklch(15.1% 0.068 303.9);
Tailwind
colors: {
  custom: {
    50: '#4f475d',
    500: '#120222',
    950: '#000000',
  },
}
SCSS
$custom: #120222;
$custom-light: #4f475d;
$custom-dark: #000000;
JSON
{
  "hex": "#120222",
  "rgb": {
    "r": 18,
    "g": 2,
    "b": 34
  },
  "hsl": {
    "h": 270,
    "s": 88.889,
    "l": 7.059
  },
  "oklch": {
    "l": 0.15097,
    "c": 0.06847,
    "h": 303.9
  },
  "luminance": 0.00288
}

Semantic roles & 50–950 ramp

primary
#120222
secondary
#406818
accent
#FF2994
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#020004
muted
#787779

Preview Lab

Preview with #120222

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

Preview Lab → · Contrast checker → · Palette generator →

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