#420C5F#420C5F

#420C5F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 30.0% C 0.136 H 309.7°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#420C5F
RGBrgb(66, 12, 95)
HSLhsl(279, 78%, 21%)
HSVhsv(279, 87%, 37%)
CMYKcmyk(30.5%, 87.4%, 0%, 62.7%)
CIE-LABlab(16.74, 39.02, -36.77)
CIE-LCHlch(16.74, 53.62, 316.69°)
OKLaboklab(30% 0.0867 -0.1045)
OKLCHoklch(30% 0.136 309.7)
XYZxyz(4.4434, 2.2475, 11.0240)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420C5F #295F0C
analogous
#180C5F #420C5F #5F0C52
triadic
#420C5F #5F420C #0C5F42
tetradic
#420C5F #5F180C #295F0C #0C525F
square
#420C5F #5F180C #295F0C #0C525F
split-complementary
#420C5F #525F0C #0C5F18
monochromatic
#13031B #1C0529 #420C5F #681395 #8D1ACC

Accessibility & contrast

On white

14.49
#420C5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#420C5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420C5F
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420C5F#FFFFFF#000000##FFFFFF
##420C5F1.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#002A5D
Tritanopia (blue-blind)
#3E2237
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #420c5f;
/* rgb */ color: rgb(66, 12, 95);
/* oklch */ color: oklch(30.0% 0.136 309.7);
Tailwind
colors: {
  custom: {
    50: '#7a538d',
    500: '#420c5f',
    950: '#000000',
  },
}
SCSS
$custom: #420c5f;
$custom-light: #7a538d;
$custom-dark: #000000;
JSON
{
  "hex": "#420c5f",
  "rgb": {
    "r": 66,
    "g": 12,
    "b": 95
  },
  "hsl": {
    "h": 279.036,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.3,
    "c": 0.13573,
    "h": 309.7
  },
  "luminance": 0.02247
}

Semantic roles & 50–950 ramp

primary
#420C5F
secondary
#53992D
accent
#F43477
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #420C5F

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

Preview Lab → · Contrast checker → · Palette generator →

#420C5F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva