#422897#422897

#422897 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.169 H 286.1°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#422897
RGBrgb(66, 40, 151)
HSLhsl(254, 58%, 37%)
HSVhsv(254, 74%, 59%)
CMYKcmyk(56.3%, 73.5%, 0%, 40.8%)
CIE-LABlab(26.48, 41.29, -56.57)
CIE-LCHlch(26.48, 70.04, 306.13°)
OKLaboklab(38.44% 0.0469 -0.1628)
OKLCHoklch(38.44% 0.169 286.1)
XYZxyz(8.5898, 4.9097, 29.7672)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#422897 #7D9728
analogous
#284697 #422897 #792897
triadic
#422897 #974228 #289742
tetradic
#422897 #972846 #7D9728 #289779
square
#422897 #972846 #7D9728 #289779
split-complementary
#422897 #977928 #469728
monochromatic
#180E36 #2D1B67 #422897 #5735C7 #7E64D6

Accessibility & contrast

On white

10.60
#422897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#422897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #422897
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##422897#FFFFFF#000000##FFFFFF
##4228971.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#1C465D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #422897;
/* rgb */ color: rgb(66, 40, 151);
/* oklch */ color: oklch(38.4% 0.169 286.1);
Tailwind
colors: {
  custom: {
    50: '#8065b7',
    500: '#422897',
    950: '#000000',
  },
}
SCSS
$custom: #422897;
$custom-light: #8065b7;
$custom-dark: #000000;
JSON
{
  "hex": "#422897",
  "rgb": {
    "r": 66,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 254.054,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38435,
    "c": 0.16938,
    "h": 286.1
  },
  "luminance": 0.0491
}

Semantic roles & 50–950 ramp

primary
#422897
secondary
#A6BC5F
accent
#E146BD
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #422897

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

Preview Lab → · Contrast checker → · Palette generator →

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