#120128#120128

#120128 is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.5% C 0.079 H 298.8°. Best body text is #FFFFFF at 19.80:1 contrast (WCAG AA passes).

Color values

HEX#120128
RGBrgb(18, 1, 40)
HSLhsl(266, 95%, 8%)
HSVhsv(266, 98%, 16%)
CMYKcmyk(55%, 97.5%, 0%, 84.3%)
CIE-LABlab(2.74, 14.53, -20.74)
CIE-LCHlch(2.74, 25.32, 305.02°)
OKLaboklab(15.52% 0.0379 -0.069)
OKLCHoklch(15.52% 0.079 298.8)
XYZxyz(0.6432, 0.3035, 2.0318)
Luminance0.0030 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120128 #172801
analogous
#010328 #120128 #250128
triadic
#120128 #281201 #012812
tetradic
#120128 #280103 #172801 #012825
square
#120128 #280103 #172801 #012825
split-complementary
#120128 #282501 #032801
monochromatic
#0D011E #0D011E #120128 #2D0264 #48049F

Accessibility & contrast

On white

19.80
#120128 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120128
19.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120128#FFFFFF#000000##FFFFFF
##1201281.0019.801.0619.80
#FFFFFF19.801.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A29
Deuteranopia (green-blind)
#000A27
Tritanopia (blue-blind)
#0C0A13
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #120128;
/* rgb */ color: rgb(18, 1, 40);
/* oklch */ color: oklch(15.5% 0.079 298.8);
Tailwind
colors: {
  custom: {
    50: '#504762',
    500: '#120128',
    950: '#000000',
  },
}
SCSS
$custom: #120128;
$custom-light: #504762;
$custom-dark: #000000;
JSON
{
  "hex": "#120128",
  "rgb": {
    "r": 18,
    "g": 1,
    "b": 40
  },
  "hsl": {
    "h": 266.154,
    "s": 95.122,
    "l": 8.039
  },
  "oklch": {
    "l": 0.1552,
    "c": 0.07876,
    "h": 298.8
  },
  "luminance": 0.00304
}

Semantic roles & 50–950 ramp

primary
#120128
secondary
#486F16
accent
#FF29A2
background
#F4F3F5
surface
#E7E5EA
border
#C3C1C6
text
#020005
muted
#787779

Preview Lab

Preview with #120128

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

Preview Lab → · Contrast checker → · Palette generator →

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