#120537#120537

#120537 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.3% C 0.090 H 286.0°. Best body text is #FFFFFF at 19.05:1 contrast (WCAG AA passes).

Color values

HEX#120537
RGBrgb(18, 5, 55)
HSLhsl(256, 83%, 12%)
HSVhsv(256, 91%, 22%)
CMYKcmyk(67.3%, 90.9%, 0%, 78.4%)
CIE-LABlab(4.63, 20.37, -28.97)
CIE-LCHlch(4.63, 35.42, 305.11°)
OKLaboklab(18.29% 0.0248 -0.0866)
OKLCHoklch(18.29% 0.09 286)
XYZxyz(0.9931, 0.5129, 3.6604)
Luminance0.0051 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120537 #2A3705
analogous
#051137 #120537 #2B0537
triadic
#120537 #371205 #053712
tetradic
#120537 #370511 #2A3705 #05372B
square
#120537 #370511 #2A3705 #05372B
split-complementary
#120537 #372B05 #113705
monochromatic
#09031C #09031C #120537 #240A6F #370FA7

Accessibility & contrast

On white

19.05
#120537 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#120537 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120537
19.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120537#FFFFFF#000000##FFFFFF
##1205371.0019.051.1019.05
#FFFFFF19.051.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001138
Deuteranopia (green-blind)
#000E36
Tritanopia (blue-blind)
#02131E
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #120537;
/* rgb */ color: rgb(18, 5, 55);
/* oklch */ color: oklch(18.3% 0.090 286.0);
Tailwind
colors: {
  custom: {
    50: '#55486e',
    500: '#120537',
    950: '#000000',
  },
}
SCSS
$custom: #120537;
$custom-light: #55486e;
$custom-dark: #000000;
JSON
{
  "hex": "#120537",
  "rgb": {
    "r": 18,
    "g": 5,
    "b": 55
  },
  "hsl": {
    "h": 255.6,
    "s": 83.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.18292,
    "c": 0.09005,
    "h": 286
  },
  "luminance": 0.00513
}

Semantic roles & 50–950 ramp

primary
#120537
secondary
#617820
accent
#FA2EC5
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#030007
muted
#78777A

Preview Lab

Preview with #120537

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

Preview Lab → · Contrast checker → · Palette generator →

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