#422787#422787

#422787 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.8% C 0.151 H 289.8°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#422787
RGBrgb(66, 39, 135)
HSLhsl(257, 55%, 34%)
HSVhsv(257, 71%, 53%)
CMYKcmyk(51.1%, 71.1%, 0%, 47.1%)
CIE-LABlab(24.82, 37.01, -49.37)
CIE-LCHlch(24.82, 61.70, 306.86°)
OKLaboklab(36.81% 0.0511 -0.1416)
OKLCHoklch(36.81% 0.151 289.8)
XYZxyz(7.3442, 4.3583, 23.3712)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#422787 #6C8727
analogous
#273C87 #422787 #722787
triadic
#422787 #874227 #278742
tetradic
#422787 #87273C #6C8727 #278772
square
#422787 #87273C #6C8727 #278772
split-complementary
#422787 #877227 #3C8727
monochromatic
#140C28 #2B1958 #422787 #5935B6 #7A59CF

Accessibility & contrast

On white

11.22
#422787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#422787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #422787
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##422787#FFFFFF#000000##FFFFFF
##4227871.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#2A3F54
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #422787;
/* rgb */ color: rgb(66, 39, 135);
/* oklch */ color: oklch(36.8% 0.151 289.8);
Tailwind
colors: {
  custom: {
    50: '#7d63ab',
    500: '#422787',
    950: '#000000',
  },
}
SCSS
$custom: #422787;
$custom-light: #7d63ab;
$custom-dark: #000000;
JSON
{
  "hex": "#422787",
  "rgb": {
    "r": 66,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 256.875,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3681,
    "c": 0.15056,
    "h": 289.8
  },
  "luminance": 0.04359
}

Semantic roles & 50–950 ramp

primary
#422787
secondary
#9AB456
accent
#DF49B5
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #422787

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

Preview Lab → · Contrast checker → · Palette generator →

#422787 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva