#120225#120225

#120225 is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.4% C 0.072 H 300.8°. Best body text is #FFFFFF at 19.79:1 contrast (WCAG AA passes).

Color values

HEX#120225
RGBrgb(18, 2, 37)
HSLhsl(267, 90%, 8%)
HSVhsv(267, 95%, 15%)
CMYKcmyk(51.4%, 94.6%, 0%, 85.5%)
CIE-LABlab(2.76, 12.88, -18.39)
CIE-LCHlch(2.76, 22.45, 305.02°)
OKLaboklab(15.44% 0.037 -0.0621)
OKLCHoklch(15.44% 0.072 300.8)
XYZxyz(0.6050, 0.3056, 1.7770)
Luminance0.0031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120225 #152502
analogous
#020325 #120225 #240225
triadic
#120225 #251202 #022512
tetradic
#120225 #250203 #152502 #022524
square
#120225 #250203 #152502 #022524
split-complementary
#120225 #252402 #032502
monochromatic
#0E021D #0E021D #120225 #2E055F #4A0899

Accessibility & contrast

On white

19.79
#120225 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120225
19.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120225#FFFFFF#000000##FFFFFF
##1202251.0019.791.0619.79
#FFFFFF19.791.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A26
Deuteranopia (green-blind)
#000A24
Tritanopia (blue-blind)
#0E0912
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #120225;
/* rgb */ color: rgb(18, 2, 37);
/* oklch */ color: oklch(15.4% 0.072 300.8);
Tailwind
colors: {
  custom: {
    50: '#50475f',
    500: '#120225',
    950: '#000000',
  },
}
SCSS
$custom: #120225;
$custom-light: #50475f;
$custom-dark: #000000;
JSON
{
  "hex": "#120225",
  "rgb": {
    "r": 18,
    "g": 2,
    "b": 37
  },
  "hsl": {
    "h": 267.429,
    "s": 89.744,
    "l": 7.647
  },
  "oklch": {
    "l": 0.15436,
    "c": 0.07228,
    "h": 300.8
  },
  "luminance": 0.00306
}

Semantic roles & 50–950 ramp

primary
#120225
secondary
#456A18
accent
#FF299D
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#020004
muted
#787779

Preview Lab

Preview with #120225

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

Preview Lab → · Contrast checker → · Palette generator →

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