#422771#422771

#422771 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 34.9% C 0.122 H 296.3°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#422771
RGBrgb(66, 39, 113)
HSLhsl(262, 49%, 30%)
HSVhsv(262, 65%, 44%)
CMYKcmyk(41.6%, 65.5%, 0%, 55.7%)
CIE-LABlab(23.00, 30.44, -38.38)
CIE-LCHlch(23.00, 48.98, 308.42°)
OKLaboklab(34.93% 0.0541 -0.1093)
OKLCHoklch(34.93% 0.122 296.3)
XYZxyz(5.9521, 3.8014, 16.0397)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#422771 #567127
analogous
#273171 #422771 #672771
triadic
#422771 #714227 #277142
tetradic
#422771 #712731 #567127 #277167
square
#422771 #712731 #567127 #277167
split-complementary
#422771 #716727 #317127
monochromatic
#0D0817 #271744 #422771 #5D379E #7A50C3

Accessibility & contrast

On white

11.93
#422771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#422771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #422771
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##422771#FFFFFF#000000##FFFFFF
##4227711.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#00366F
Tritanopia (blue-blind)
#363848
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #422771;
/* rgb */ color: rgb(66, 39, 113);
/* oklch */ color: oklch(34.9% 0.122 296.3);
Tailwind
colors: {
  custom: {
    50: '#7a639a',
    500: '#422771',
    950: '#000000',
  },
}
SCSS
$custom: #422771;
$custom-light: #7a639a;
$custom-dark: #000000;
JSON
{
  "hex": "#422771",
  "rgb": {
    "r": 66,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 261.892,
    "s": 48.684,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34931,
    "c": 0.12197,
    "h": 296.3
  },
  "luminance": 0.03802
}

Semantic roles & 50–950 ramp

primary
#422771
secondary
#85A350
accent
#D850A6
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #422771

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

Preview Lab → · Contrast checker → · Palette generator →

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