#42074E#42074E

#42074E is a dark, vivid purple. Relative luminance 0.019; OKLCH L 28.2% C 0.124 H 319.8°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#42074E
RGBrgb(66, 7, 78)
HSLhsl(290, 84%, 17%)
HSVhsv(290, 91%, 31%)
CMYKcmyk(15.4%, 91%, 0%, 69.4%)
CIE-LABlab(14.74, 36.93, -28.51)
CIE-LCHlch(14.74, 46.66, 322.33°)
OKLaboklab(28.16% 0.095 -0.0802)
OKLCHoklch(28.16% 0.124 319.8)
XYZxyz(3.6977, 1.8605, 7.3706)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42074E #134E07
analogous
#1F074E #42074E #4E0737
triadic
#42074E #4E4207 #074E42
tetradic
#42074E #4E1F07 #134E07 #07374E
square
#42074E #4E1F07 #134E07 #07374E
split-complementary
#42074E #374E07 #074E1F
monochromatic
#18031C #18031C #42074E #720C86 #A111BE

Accessibility & contrast

On white

15.31
#42074E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#42074E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42074E
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42074E#FFFFFF#000000##FFFFFF
##42074E1.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002150
Deuteranopia (green-blind)
#0E274D
Tritanopia (blue-blind)
#42182C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #42074e;
/* rgb */ color: rgb(66, 7, 78);
/* oklch */ color: oklch(28.2% 0.124 319.8);
Tailwind
colors: {
  custom: {
    50: '#795080',
    500: '#42074e',
    950: '#000000',
  },
}
SCSS
$custom: #42074e;
$custom-light: #795080;
$custom-dark: #000000;
JSON
{
  "hex": "#42074e",
  "rgb": {
    "r": 66,
    "g": 7,
    "b": 78
  },
  "hsl": {
    "h": 289.859,
    "s": 83.529,
    "l": 16.667
  },
  "oklch": {
    "l": 0.28156,
    "c": 0.12429,
    "h": 319.8
  },
  "luminance": 0.0186
}

Semantic roles & 50–950 ramp

primary
#42074E
secondary
#368C25
accent
#FA2E50
background
#F7F4F7
surface
#EEE7EE
border
#C9C3C9
text
#09020A
muted
#7B787C

Preview Lab

Preview with #42074E

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

Preview Lab → · Contrast checker → · Palette generator →

#42074E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva