#120628#120628

#120628 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.8% C 0.067 H 294.9°. Best body text is #FFFFFF at 19.40:1 contrast (WCAG AA passes).

Color values

HEX#120628
RGBrgb(18, 6, 40)
HSLhsl(261, 74%, 9%)
HSVhsv(261, 85%, 16%)
CMYKcmyk(55%, 85%, 0%, 84.3%)
CIE-LABlab(3.72, 12.53, -19.20)
CIE-LCHlch(3.72, 22.93, 303.13°)
OKLaboklab(16.78% 0.028 -0.0605)
OKLCHoklch(16.78% 0.067 294.9)
XYZxyz(0.6975, 0.4120, 2.0499)
Luminance0.0041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120628 #1C2806
analogous
#060B28 #120628 #230628
triadic
#120628 #281206 #062812
tetradic
#120628 #28060B #1C2806 #062823
square
#120628 #28060B #1C2806 #062823
split-complementary
#120628 #282306 #0B2806
monochromatic
#0C041B #0C041B #120628 #2A0E5D #421692

Accessibility & contrast

On white

19.40
#120628 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#120628 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120628
19.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120628#FFFFFF#000000##FFFFFF
##1206281.0019.401.0819.40
#FFFFFF19.401.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E29
Deuteranopia (green-blind)
#000D27
Tritanopia (blue-blind)
#0C0E15
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #120628;
/* rgb */ color: rgb(18, 6, 40);
/* oklch */ color: oklch(16.8% 0.067 294.9);
Tailwind
colors: {
  custom: {
    50: '#504962',
    500: '#120628',
    950: '#000000',
  },
}
SCSS
$custom: #120628;
$custom-light: #504962;
$custom-dark: #000000;
JSON
{
  "hex": "#120628",
  "rgb": {
    "r": 18,
    "g": 6,
    "b": 40
  },
  "hsl": {
    "h": 261.176,
    "s": 73.913,
    "l": 9.02
  },
  "oklch": {
    "l": 0.16779,
    "c": 0.06665,
    "h": 294.9
  },
  "luminance": 0.00412
}

Semantic roles & 50–950 ramp

primary
#120628
secondary
#4F6921
accent
#F137AF
background
#F4F4F5
surface
#E7E6EA
border
#C3C2C6
text
#020005
muted
#787779

Preview Lab

Preview with #120628

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

Preview Lab → · Contrast checker → · Palette generator →

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