#422398#422398

#422398 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.176 H 286.7°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#422398
RGBrgb(66, 35, 152)
HSLhsl(256, 63%, 37%)
HSVhsv(256, 77%, 60%)
CMYKcmyk(56.6%, 77%, 0%, 40.4%)
CIE-LABlab(25.64, 44.22, -58.55)
CIE-LCHlch(25.64, 73.37, 307.06°)
OKLaboklab(37.88% 0.0506 -0.1685)
OKLCHoklch(37.88% 0.176 286.7)
XYZxyz(8.5136, 4.6268, 30.1441)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#422398 #799823
analogous
#233F98 #422398 #7D2398
triadic
#422398 #984223 #239842
tetradic
#422398 #98233F #799823 #23987D
square
#422398 #98233F #799823 #23987D
split-complementary
#422398 #987D23 #3F9823
monochromatic
#170C35 #2C1866 #422398 #582ECA #7D5CD9

Accessibility & contrast

On white

10.91
#422398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#422398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #422398
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##422398#FFFFFF#000000##FFFFFF
##4223981.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409B
Deuteranopia (green-blind)
#003996
Tritanopia (blue-blind)
#1B445C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #422398;
/* rgb */ color: rgb(66, 35, 152);
/* oklch */ color: oklch(37.9% 0.176 286.7);
Tailwind
colors: {
  custom: {
    50: '#8162b7',
    500: '#422398',
    950: '#000000',
  },
}
SCSS
$custom: #422398;
$custom-light: #8162b7;
$custom-dark: #000000;
JSON
{
  "hex": "#422398",
  "rgb": {
    "r": 66,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 255.897,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37877,
    "c": 0.17596,
    "h": 286.7
  },
  "luminance": 0.04627
}

Semantic roles & 50–950 ramp

primary
#422398
secondary
#A3BE59
accent
#E642BA
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #422398

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

Preview Lab → · Contrast checker → · Palette generator →

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