#422397#422397

#422397 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.175 H 286.9°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#422397
RGBrgb(66, 35, 151)
HSLhsl(256, 62%, 36%)
HSVhsv(256, 77%, 59%)
CMYKcmyk(56.3%, 76.8%, 0%, 40.8%)
CIE-LABlab(25.55, 43.92, -58.10)
CIE-LCHlch(25.55, 72.83, 307.09°)
OKLaboklab(37.78% 0.0509 -0.1672)
OKLCHoklch(37.78% 0.175 286.9)
XYZxyz(8.4320, 4.5942, 29.7146)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#422397 #789723
analogous
#233E97 #422397 #7C2397
triadic
#422397 #974223 #239742
tetradic
#422397 #97233E #789723 #23977C
square
#422397 #97233E #789723 #23977C
split-complementary
#422397 #977C23 #3E9723
monochromatic
#170C34 #2C1765 #422397 #582FC9 #7D5BD9

Accessibility & contrast

On white

10.94
#422397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#422397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #422397
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##422397#FFFFFF#000000##FFFFFF
##4223971.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#1C445C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #422397;
/* rgb */ color: rgb(66, 35, 151);
/* oklch */ color: oklch(37.8% 0.175 286.9);
Tailwind
colors: {
  custom: {
    50: '#8062b7',
    500: '#422397',
    950: '#000000',
  },
}
SCSS
$custom: #422397;
$custom-light: #8062b7;
$custom-dark: #000000;
JSON
{
  "hex": "#422397",
  "rgb": {
    "r": 66,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 256.034,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37779,
    "c": 0.17477,
    "h": 286.9
  },
  "luminance": 0.04595
}

Semantic roles & 50–950 ramp

primary
#422397
secondary
#A2BE58
accent
#E542BA
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #422397

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

Preview Lab → · Contrast checker → · Palette generator →

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