#42219F#42219F

#42219F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.186 H 285.6°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#42219F
RGBrgb(66, 33, 159)
HSLhsl(256, 66%, 38%)
HSVhsv(256, 79%, 62%)
CMYKcmyk(58.5%, 79.2%, 0%, 37.6%)
CIE-LABlab(26.01, 47.23, -62.24)
CIE-LCHlch(26.01, 78.13, 307.19°)
OKLaboklab(38.34% 0.05 -0.1793)
OKLCHoklch(38.34% 0.186 285.6)
XYZxyz(9.0467, 4.7486, 33.2340)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42219F #7E9F21
analogous
#213F9F #42219F #81219F
triadic
#42219F #9F4221 #219F42
tetradic
#42219F #9F213F #7E9F21 #219F81
square
#42219F #9F213F #7E9F21 #219F81
split-complementary
#42219F #9F8121 #3F9F21
monochromatic
#180C3A #2D166C #42219F #572CD2 #7F5DDD

Accessibility & contrast

On white

10.77
#42219F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#42219F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42219F
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42219F#FFFFFF#000000##FFFFFF
##42219F1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A3
Deuteranopia (green-blind)
#003A9D
Tritanopia (blue-blind)
#104660
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #42219f;
/* rgb */ color: rgb(66, 33, 159);
/* oklch */ color: oklch(38.3% 0.186 285.6);
Tailwind
colors: {
  custom: {
    50: '#8261bd',
    500: '#42219f',
    950: '#000000',
  },
}
SCSS
$custom: #42219f;
$custom-light: #8261bd;
$custom-dark: #000000;
JSON
{
  "hex": "#42219f",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 159
  },
  "hsl": {
    "h": 255.714,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38342,
    "c": 0.18612,
    "h": 285.6
  },
  "luminance": 0.04749
}

Semantic roles & 50–950 ramp

primary
#42219F
secondary
#A7C25A
accent
#E93FBC
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #42219F

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

Preview Lab → · Contrast checker → · Palette generator →

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