#120428#120428

#120428 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.3% C 0.071 H 296.5°. Best body text is #FFFFFF at 19.56:1 contrast (WCAG AA passes).

Color values

HEX#120428
RGBrgb(18, 4, 40)
HSLhsl(263, 82%, 9%)
HSVhsv(263, 90%, 16%)
CMYKcmyk(55%, 90%, 0%, 84.3%)
CIE-LABlab(3.33, 13.33, -19.82)
CIE-LCHlch(3.33, 23.88, 303.93°)
OKLaboklab(16.3% 0.0317 -0.0637)
OKLCHoklch(16.3% 0.071 296.5)
XYZxyz(0.6758, 0.3686, 2.0426)
Luminance0.0037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120428 #1A2804
analogous
#040828 #120428 #240428
triadic
#120428 #281204 #042812
tetradic
#120428 #280408 #1A2804 #042824
square
#120428 #280408 #1A2804 #042824
split-complementary
#120428 #282404 #082804
monochromatic
#0D031C #0D031C #120428 #2B0A60 #440F97

Accessibility & contrast

On white

19.56
#120428 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#120428 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120428
19.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120428#FFFFFF#000000##FFFFFF
##1204281.0019.561.0719.56
#FFFFFF19.561.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C29
Deuteranopia (green-blind)
#000C27
Tritanopia (blue-blind)
#0C0C15
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #120428;
/* rgb */ color: rgb(18, 4, 40);
/* oklch */ color: oklch(16.3% 0.071 296.5);
Tailwind
colors: {
  custom: {
    50: '#504862',
    500: '#120428',
    950: '#000000',
  },
}
SCSS
$custom: #120428;
$custom-light: #504862;
$custom-dark: #000000;
JSON
{
  "hex": "#120428",
  "rgb": {
    "r": 18,
    "g": 4,
    "b": 40
  },
  "hsl": {
    "h": 263.333,
    "s": 81.818,
    "l": 8.627
  },
  "oklch": {
    "l": 0.16298,
    "c": 0.07115,
    "h": 296.5
  },
  "luminance": 0.00369
}

Semantic roles & 50–950 ramp

primary
#120428
secondary
#4D6B1D
accent
#F830AA
background
#F4F4F5
surface
#E7E6EA
border
#C3C2C6
text
#020005
muted
#787779

Preview Lab

Preview with #120428

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

Preview Lab → · Contrast checker → · Palette generator →

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