#120841#120841

#120841 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.1% C 0.100 H 280.6°. Best body text is #FFFFFF at 18.47:1 contrast (WCAG AA passes).

Color values

HEX#120841
RGBrgb(18, 8, 65)
HSLhsl(251, 78%, 14%)
HSVhsv(251, 88%, 25%)
CMYKcmyk(72.3%, 87.7%, 0%, 74.5%)
CIE-LABlab(6.18, 23.68, -33.69)
CIE-LCHlch(6.18, 41.18, 305.10°)
OKLaboklab(20.06% 0.0184 -0.098)
OKLCHoklch(20.06% 0.1 280.6)
XYZxyz(1.2901, 0.6838, 5.0640)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120841 #374108
analogous
#081B41 #120841 #2F0841
triadic
#120841 #411208 #084112
tetradic
#120841 #41081B #374108 #08412F
square
#120841 #41081B #374108 #08412F
split-complementary
#120841 #412F08 #1B4108
monochromatic
#08031B #08031B #120841 #210F77 #3015AE

Accessibility & contrast

On white

18.47
#120841 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#120841 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120841
18.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120841#FFFFFF#000000##FFFFFF
##1208411.0018.471.1418.47
#FFFFFF18.471.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001643
Deuteranopia (green-blind)
#001240
Tritanopia (blue-blind)
#001924
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #120841;
/* rgb */ color: rgb(18, 8, 65);
/* oklch */ color: oklch(20.1% 0.100 280.6);
Tailwind
colors: {
  custom: {
    50: '#584976',
    500: '#120841',
    950: '#000000',
  },
}
SCSS
$custom: #120841;
$custom-light: #584976;
$custom-dark: #000000;
JSON
{
  "hex": "#120841",
  "rgb": {
    "r": 18,
    "g": 8,
    "b": 65
  },
  "hsl": {
    "h": 250.526,
    "s": 78.082,
    "l": 14.314
  },
  "oklch": {
    "l": 0.20065,
    "c": 0.09972,
    "h": 280.6
  },
  "luminance": 0.00684
}

Semantic roles & 50–950 ramp

primary
#120841
secondary
#707F25
accent
#F533D3
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #120841

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

Preview Lab → · Contrast checker → · Palette generator →

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