#42227E#42227E

#42227E is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.146 H 293.4°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#42227E
RGBrgb(66, 34, 126)
HSLhsl(261, 58%, 31%)
HSVhsv(261, 73%, 49%)
CMYKcmyk(47.6%, 73%, 0%, 50.6%)
CIE-LABlab(23.03, 37.12, -46.63)
CIE-LCHlch(23.03, 59.60, 308.52°)
OKLaboklab(35.28% 0.0579 -0.1336)
OKLCHoklch(35.28% 0.146 293.4)
XYZxyz(6.5837, 3.8085, 20.1228)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42227E #5E7E22
analogous
#22307E #42227E #70227E
triadic
#42227E #7E4222 #227E42
tetradic
#42227E #7E2230 #5E7E22 #227E70
square
#42227E #7E2230 #5E7E22 #227E70
split-complementary
#42227E #7E7022 #307E22
monochromatic
#10081E #29154E #42227E #5B2FAE #794CCF

Accessibility & contrast

On white

11.92
#42227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#42227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42227E
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42227E#FFFFFF#000000##FFFFFF
##42227E1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#30394D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #42227e;
/* rgb */ color: rgb(66, 34, 126);
/* oklch */ color: oklch(35.3% 0.146 293.4);
Tailwind
colors: {
  custom: {
    50: '#7c60a4',
    500: '#42227e',
    950: '#000000',
  },
}
SCSS
$custom: #42227e;
$custom-light: #7c60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#42227e",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 260.87,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35285,
    "c": 0.14558,
    "h": 293.4
  },
  "luminance": 0.03809
}

Semantic roles & 50–950 ramp

primary
#42227E
secondary
#8DB14B
accent
#E147AB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #42227E

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

Preview Lab → · Contrast checker → · Palette generator →

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