#422874#422874

#422874 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.3% C 0.124 H 295.0°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#422874
RGBrgb(66, 40, 116)
HSLhsl(261, 49%, 31%)
HSVhsv(261, 66%, 45%)
CMYKcmyk(43.1%, 65.5%, 0%, 54.5%)
CIE-LABlab(23.46, 30.72, -39.56)
CIE-LCHlch(23.46, 50.09, 307.83°)
OKLaboklab(35.34% 0.0526 -0.1128)
OKLCHoklch(35.34% 0.124 295)
XYZxyz(6.1571, 3.9366, 16.9551)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#422874 #5A7428
analogous
#283474 #422874 #682874
triadic
#422874 #744228 #287442
tetradic
#422874 #742834 #5A7428 #287468
square
#422874 #742834 #5A7428 #287468
split-complementary
#422874 #746828 #347428
monochromatic
#0E0919 #281846 #422874 #5C38A2 #7953C4

Accessibility & contrast

On white

11.75
#422874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#422874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #422874
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##422874#FFFFFF#000000##FFFFFF
##4228741.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003976
Deuteranopia (green-blind)
#003772
Tritanopia (blue-blind)
#35394A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #422874;
/* rgb */ color: rgb(66, 40, 116);
/* oklch */ color: oklch(35.3% 0.124 295.0);
Tailwind
colors: {
  custom: {
    50: '#7b639d',
    500: '#422874',
    950: '#000000',
  },
}
SCSS
$custom: #422874;
$custom-light: #7b639d;
$custom-dark: #000000;
JSON
{
  "hex": "#422874",
  "rgb": {
    "r": 66,
    "g": 40,
    "b": 116
  },
  "hsl": {
    "h": 260.526,
    "s": 48.718,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35336,
    "c": 0.12446,
    "h": 295
  },
  "luminance": 0.03937
}

Semantic roles & 50–950 ramp

primary
#422874
secondary
#89A652
accent
#D850A9
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#0A050E
muted
#7C7A7E

Preview Lab

Preview with #422874

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

Preview Lab → · Contrast checker → · Palette generator →

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