#42187A#42187A

#42187A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.152 H 296.6°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#42187A
RGBrgb(66, 24, 122)
HSLhsl(266, 67%, 29%)
HSVhsv(266, 80%, 48%)
CMYKcmyk(45.9%, 80.3%, 0%, 52.2%)
CIE-LABlab(20.89, 41.01, -47.58)
CIE-LCHlch(20.89, 62.82, 310.76°)
OKLaboklab(33.67% 0.0683 -0.1363)
OKLCHoklch(33.67% 0.152 296.6)
XYZxyz(6.0853, 3.2165, 18.7088)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42187A #507A18
analogous
#181F7A #42187A #73187A
triadic
#42187A #7A4218 #187A42
tetradic
#42187A #7A181F #507A18 #187A73
square
#42187A #7A181F #507A18 #187A73
split-complementary
#42187A #7A7318 #1F7A18
monochromatic
#0E051A #260E47 #42187A #5E22AD #7B35D7

Accessibility & contrast

On white

12.78
#42187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#42187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42187A
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42187A#FFFFFF#000000##FFFFFF
##42187A1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#003178
Tritanopia (blue-blind)
#333349
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #42187a;
/* rgb */ color: rgb(66, 24, 122);
/* oklch */ color: oklch(33.7% 0.152 296.6);
Tailwind
colors: {
  custom: {
    50: '#7d5aa1',
    500: '#42187a',
    950: '#000000',
  },
}
SCSS
$custom: #42187a;
$custom-light: #7d5aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#42187a",
  "rgb": {
    "r": 66,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 265.714,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33665,
    "c": 0.15247,
    "h": 296.6
  },
  "luminance": 0.03217
}

Semantic roles & 50–950 ramp

primary
#42187A
secondary
#7FAF3F
accent
#EA3EA0
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #42187A

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

Preview Lab → · Contrast checker → · Palette generator →

#42187A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva