#120532#120532

#120532 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.7% C 0.083 H 288.7°. Best body text is #FFFFFF at 19.21:1 contrast (WCAG AA passes).

Color values

HEX#120532
RGBrgb(18, 5, 50)
HSLhsl(257, 82%, 11%)
HSVhsv(257, 90%, 20%)
CMYKcmyk(64%, 90%, 0%, 80.4%)
CIE-LABlab(4.22, 17.80, -25.95)
CIE-LCHlch(4.22, 31.47, 304.45°)
OKLaboklab(17.68% 0.0266 -0.0787)
OKLCHoklch(17.68% 0.083 288.7)
XYZxyz(0.8793, 0.4674, 3.0609)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120532 #253205
analogous
#050E32 #120532 #280532
triadic
#120532 #321205 #053212
tetradic
#120532 #32050E #253205 #053228
square
#120532 #32050E #253205 #053228
split-complementary
#120532 #322805 #0E3205
monochromatic
#0A031C #0A031C #120532 #260B6A #3A10A1

Accessibility & contrast

On white

19.21
#120532 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#120532 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120532
19.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120532#FFFFFF#000000##FFFFFF
##1205321.0019.211.0919.21
#FFFFFF19.211.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001033
Deuteranopia (green-blind)
#000E31
Tritanopia (blue-blind)
#06111B
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #120532;
/* rgb */ color: rgb(18, 5, 50);
/* oklch */ color: oklch(17.7% 0.083 288.7);
Tailwind
colors: {
  custom: {
    50: '#53486a',
    500: '#120532',
    950: '#000000',
  },
}
SCSS
$custom: #120532;
$custom-light: #53486a;
$custom-dark: #000000;
JSON
{
  "hex": "#120532",
  "rgb": {
    "r": 18,
    "g": 5,
    "b": 50
  },
  "hsl": {
    "h": 257.333,
    "s": 81.818,
    "l": 10.784
  },
  "oklch": {
    "l": 0.17684,
    "c": 0.08311,
    "h": 288.7
  },
  "luminance": 0.00467
}

Semantic roles & 50–950 ramp

primary
#120532
secondary
#5B731F
accent
#F830BE
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#030006
muted
#78777A

Preview Lab

Preview with #120532

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

Preview Lab → · Contrast checker → · Palette generator →

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