#420F6A#420F6A

#420F6A is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.3% C 0.144 H 304.1°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#420F6A
RGBrgb(66, 15, 106)
HSLhsl(274, 75%, 24%)
HSVhsv(274, 86%, 42%)
CMYKcmyk(37.7%, 85.8%, 0%, 58.4%)
CIE-LABlab(18.10, 40.59, -41.81)
CIE-LCHlch(18.10, 58.27, 314.15°)
OKLaboklab(31.26% 0.0809 -0.1193)
OKLCHoklch(31.26% 0.144 304.1)
XYZxyz(5.0185, 2.5405, 13.8589)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420F6A #376A0F
analogous
#140F6A #420F6A #6A0F64
triadic
#420F6A #6A420F #0F6A42
tetradic
#420F6A #6A140F #376A0F #0F646A
square
#420F6A #6A140F #376A0F #0F646A
split-complementary
#420F6A #646A0F #0F6A14
monochromatic
#11041B #210734 #420F6A #6317A0 #851ED5

Accessibility & contrast

On white

13.92
#420F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#420F6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420F6A
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420F6A#FFFFFF#000000##FFFFFF
##420F6A1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002C68
Tritanopia (blue-blind)
#3A283D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #420f6a;
/* rgb */ color: rgb(66, 15, 106);
/* oklch */ color: oklch(31.3% 0.144 304.1);
Tailwind
colors: {
  custom: {
    50: '#7b5595',
    500: '#420f6a',
    950: '#000000',
  },
}
SCSS
$custom: #420f6a;
$custom-light: #7b5595;
$custom-dark: #000000;
JSON
{
  "hex": "#420f6a",
  "rgb": {
    "r": 66,
    "g": 15,
    "b": 106
  },
  "hsl": {
    "h": 273.626,
    "s": 75.207,
    "l": 23.725
  },
  "oklch": {
    "l": 0.31259,
    "c": 0.14412,
    "h": 304.1
  },
  "luminance": 0.02541
}

Semantic roles & 50–950 ramp

primary
#420F6A
secondary
#64A232
accent
#F23689
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #420F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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