#42185E#42185E

#42185E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.120 H 308.4°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#42185E
RGBrgb(66, 24, 94)
HSLhsl(276, 59%, 23%)
HSVhsv(276, 74%, 37%)
CMYKcmyk(29.8%, 74.5%, 0%, 63.1%)
CIE-LABlab(18.45, 33.63, -33.33)
CIE-LCHlch(18.45, 47.34, 315.26°)
OKLaboklab(31.18% 0.0748 -0.0944)
OKLCHoklch(31.18% 0.12 308.4)
XYZxyz(4.5934, 2.6197, 10.8512)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42185E #345E18
analogous
#1F185E #42185E #5E1857
triadic
#42185E #5E4218 #185E42
tetradic
#42185E #5E1F18 #345E18 #18575E
square
#42185E #5E1F18 #345E18 #18575E
split-complementary
#42185E #575E18 #185E1F
monochromatic
#110618 #200C2D #42185E #64248F #8631C0

Accessibility & contrast

On white

13.78
#42185E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#42185E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42185E
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42185E#FFFFFF#000000##FFFFFF
##42185E1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B60
Deuteranopia (green-blind)
#082D5C
Tritanopia (blue-blind)
#3E2839
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #42185e;
/* rgb */ color: rgb(66, 24, 94);
/* oklch */ color: oklch(31.2% 0.120 308.4);
Tailwind
colors: {
  custom: {
    50: '#79598c',
    500: '#42185e',
    950: '#000000',
  },
}
SCSS
$custom: #42185e;
$custom-light: #79598c;
$custom-dark: #000000;
JSON
{
  "hex": "#42185e",
  "rgb": {
    "r": 66,
    "g": 24,
    "b": 94
  },
  "hsl": {
    "h": 276,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.31184,
    "c": 0.12047,
    "h": 308.4
  },
  "luminance": 0.0262
}

Semantic roles & 50–950 ramp

primary
#42185E
secondary
#60943D
accent
#E34584
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #42185E

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

Preview Lab → · Contrast checker → · Palette generator →

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