#42187C#42187C

#42187C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.155 H 296.0°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#42187C
RGBrgb(66, 24, 124)
HSLhsl(265, 68%, 29%)
HSVhsv(265, 81%, 49%)
CMYKcmyk(46.8%, 80.6%, 0%, 51.4%)
CIE-LABlab(21.08, 41.55, -48.55)
CIE-LCHlch(21.08, 63.90, 310.56°)
OKLaboklab(33.86% 0.0677 -0.1391)
OKLCHoklch(33.86% 0.155 296)
XYZxyz(6.2105, 3.2666, 19.3682)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42187C #527C18
analogous
#18207C #42187C #74187C
triadic
#42187C #7C4218 #187C42
tetradic
#42187C #7C1820 #527C18 #187C74
square
#42187C #7C1820 #527C18 #187C74
split-complementary
#42187C #7C7418 #207C18
monochromatic
#0E051A #270E49 #42187C #5D22AF #7A36D8

Accessibility & contrast

On white

12.70
#42187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#42187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42187C
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42187C#FFFFFF#000000##FFFFFF
##42187C1.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#32344A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #42187c;
/* rgb */ color: rgb(66, 24, 124);
/* oklch */ color: oklch(33.9% 0.155 296.0);
Tailwind
colors: {
  custom: {
    50: '#7d5aa3',
    500: '#42187c',
    950: '#000000',
  },
}
SCSS
$custom: #42187c;
$custom-light: #7d5aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#42187c",
  "rgb": {
    "r": 66,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 265.2,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33857,
    "c": 0.15473,
    "h": 296
  },
  "luminance": 0.03267
}

Semantic roles & 50–950 ramp

primary
#42187C
secondary
#81B13F
accent
#EA3DA2
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #42187C

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

Preview Lab → · Contrast checker → · Palette generator →

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