#420F5F#420F5F

#420F5F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.133 H 309.3°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#420F5F
RGBrgb(66, 15, 95)
HSLhsl(278, 73%, 22%)
HSVhsv(278, 84%, 37%)
CMYKcmyk(30.5%, 84.2%, 0%, 62.7%)
CIE-LABlab(17.11, 37.92, -36.16)
CIE-LCHlch(17.11, 52.40, 316.36°)
OKLaboklab(30.26% 0.0841 -0.1027)
OKLCHoklch(30.26% 0.133 309.3)
XYZxyz(4.4827, 2.3262, 11.0371)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420F5F #2C5F0F
analogous
#1A0F5F #420F5F #5F0F54
triadic
#420F5F #5F420F #0F5F42
tetradic
#420F5F #5F1A0F #2C5F0F #0F545F
square
#420F5F #5F1A0F #2C5F0F #0F545F
split-complementary
#420F5F #545F0F #0F5F1A
monochromatic
#12041A #1D072A #420F5F #671794 #8B20C9

Accessibility & contrast

On white

14.33
#420F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#420F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420F5F
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420F5F#FFFFFF#000000##FFFFFF
##420F5F1.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002861
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#3E2337
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #420f5f;
/* rgb */ color: rgb(66, 15, 95);
/* oklch */ color: oklch(30.3% 0.133 309.3);
Tailwind
colors: {
  custom: {
    50: '#7a548d',
    500: '#420f5f',
    950: '#000000',
  },
}
SCSS
$custom: #420f5f;
$custom-light: #7a548d;
$custom-dark: #000000;
JSON
{
  "hex": "#420f5f",
  "rgb": {
    "r": 66,
    "g": 15,
    "b": 95
  },
  "hsl": {
    "h": 278.25,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.30264,
    "c": 0.13274,
    "h": 309.3
  },
  "luminance": 0.02326
}

Semantic roles & 50–950 ramp

primary
#420F5F
secondary
#579832
accent
#EF387B
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #420F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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