#120127#120127

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

Color values

HEX#120127
RGBrgb(18, 1, 39)
HSLhsl(267, 95%, 8%)
HSVhsv(267, 97%, 15%)
CMYKcmyk(53.8%, 97.4%, 0%, 84.7%)
CIE-LABlab(2.68, 14.10, -20.06)
CIE-LCHlch(2.68, 24.52, 305.11°)
OKLaboklab(15.4% 0.0385 -0.0674)
OKLCHoklch(15.4% 0.078 299.7)
XYZxyz(0.6264, 0.2968, 1.9433)
Luminance0.0030 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120127 #162701
analogous
#010327 #120127 #250127
triadic
#120127 #271201 #012712
tetradic
#120127 #270103 #162701 #012725
square
#120127 #270103 #162701 #012725
split-complementary
#120127 #272501 #032701
monochromatic
#0E011E #0E011E #120127 #2E0363 #49049E

Accessibility & contrast

On white

19.82
#120127 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120127
19.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120127#FFFFFF#000000##FFFFFF
##1201271.0019.821.0619.82
#FFFFFF19.821.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A28
Deuteranopia (green-blind)
#000926
Tritanopia (blue-blind)
#0D0913
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #120127;
/* rgb */ color: rgb(18, 1, 39);
/* oklch */ color: oklch(15.4% 0.078 299.7);
Tailwind
colors: {
  custom: {
    50: '#504761',
    500: '#120127',
    950: '#000000',
  },
}
SCSS
$custom: #120127;
$custom-light: #504761;
$custom-dark: #000000;
JSON
{
  "hex": "#120127",
  "rgb": {
    "r": 18,
    "g": 1,
    "b": 39
  },
  "hsl": {
    "h": 266.842,
    "s": 95,
    "l": 7.843
  },
  "oklch": {
    "l": 0.15397,
    "c": 0.07756,
    "h": 299.7
  },
  "luminance": 0.00297
}

Semantic roles & 50–950 ramp

primary
#120127
secondary
#476E16
accent
#FF299F
background
#F4F3F5
surface
#E7E5E9
border
#C3C1C5
text
#020005
muted
#787779

Preview Lab

Preview with #120127

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

Preview Lab → · Contrast checker → · Palette generator →

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