#42219E#42219E

#42219E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.185 H 285.8°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#42219E
RGBrgb(66, 33, 158)
HSLhsl(256, 65%, 37%)
HSVhsv(256, 79%, 62%)
CMYKcmyk(58.2%, 79.1%, 0%, 38%)
CIE-LABlab(25.90, 46.94, -61.79)
CIE-LCHlch(25.90, 77.60, 307.22°)
OKLaboklab(38.24% 0.0503 -0.178)
OKLCHoklch(38.24% 0.185 285.8)
XYZxyz(8.9603, 4.7141, 32.7789)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42219E #7D9E21
analogous
#213F9E #42219E #81219E
triadic
#42219E #9E4221 #219E42
tetradic
#42219E #9E213F #7D9E21 #219E81
square
#42219E #9E213F #7D9E21 #219E81
split-complementary
#42219E #9E8121 #3F9E21
monochromatic
#180C39 #2D166B #42219E #572CD1 #7E5CDD

Accessibility & contrast

On white

10.81
#42219E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#42219E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42219E
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42219E#FFFFFF#000000##FFFFFF
##42219E1.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#003A9C
Tritanopia (blue-blind)
#12455F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #42219e;
/* rgb */ color: rgb(66, 33, 158);
/* oklch */ color: oklch(38.2% 0.185 285.8);
Tailwind
colors: {
  custom: {
    50: '#8261bc',
    500: '#42219e',
    950: '#000000',
  },
}
SCSS
$custom: #42219e;
$custom-light: #8261bc;
$custom-dark: #000000;
JSON
{
  "hex": "#42219e",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 158
  },
  "hsl": {
    "h": 255.84,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.3824,
    "c": 0.18496,
    "h": 285.8
  },
  "luminance": 0.04715
}

Semantic roles & 50–950 ramp

primary
#42219E
secondary
#A6C159
accent
#E83FBC
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #42219E

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

Preview Lab → · Contrast checker → · Palette generator →

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