#420F66#420F66

#420F66 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.140 H 305.9°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#420F66
RGBrgb(66, 15, 102)
HSLhsl(275, 74%, 23%)
HSVhsv(275, 85%, 40%)
CMYKcmyk(35.3%, 85.3%, 0%, 60%)
CIE-LABlab(17.73, 39.61, -39.79)
CIE-LCHlch(17.73, 56.14, 314.87°)
OKLaboklab(30.89% 0.0822 -0.1133)
OKLCHoklch(30.89% 0.14 305.9)
XYZxyz(4.8153, 2.4592, 12.7888)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420F66 #33660F
analogous
#160F66 #420F66 #660F5E
triadic
#420F66 #66420F #0F6642
tetradic
#420F66 #66160F #33660F #0F5E66
square
#420F66 #66160F #33660F #0F5E66
split-complementary
#420F66 #5E660F #0F6616
monochromatic
#11041B #1F0731 #420F66 #65179B #871FD1

Accessibility & contrast

On white

14.08
#420F66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#420F66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420F66
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420F66#FFFFFF#000000##FFFFFF
##420F661.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002C64
Tritanopia (blue-blind)
#3B263B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #420f66;
/* rgb */ color: rgb(66, 15, 102);
/* oklch */ color: oklch(30.9% 0.140 305.9);
Tailwind
colors: {
  custom: {
    50: '#7b5592',
    500: '#420f66',
    950: '#000000',
  },
}
SCSS
$custom: #420f66;
$custom-light: #7b5592;
$custom-dark: #000000;
JSON
{
  "hex": "#420f66",
  "rgb": {
    "r": 66,
    "g": 15,
    "b": 102
  },
  "hsl": {
    "h": 275.172,
    "s": 74.359,
    "l": 22.941
  },
  "oklch": {
    "l": 0.3089,
    "c": 0.13997,
    "h": 305.9
  },
  "luminance": 0.02459
}

Semantic roles & 50–950 ramp

primary
#420F66
secondary
#5F9F32
accent
#F13784
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #420F66

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

Preview Lab → · Contrast checker → · Palette generator →

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