#472787#472787

#472787 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.151 H 292.9°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#472787
RGBrgb(71, 39, 135)
HSLhsl(260, 55%, 34%)
HSVhsv(260, 71%, 53%)
CMYKcmyk(47.4%, 71.1%, 0%, 47.1%)
CIE-LABlab(25.38, 37.95, -48.43)
CIE-LCHlch(25.38, 61.52, 308.08°)
OKLaboklab(37.34% 0.0587 -0.1387)
OKLCHoklch(37.34% 0.151 292.9)
XYZxyz(7.6960, 4.5397, 23.3877)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#472787 #678727
analogous
#273787 #472787 #772787
triadic
#472787 #874727 #278747
tetradic
#472787 #872737 #678727 #278777
square
#472787 #872737 #678727 #278777
split-complementary
#472787 #877727 #378727
monochromatic
#150C28 #2E1958 #472787 #6035B6 #8159CF

Accessibility & contrast

On white

11.01
#472787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#472787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #472787
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##472787#FFFFFF#000000##FFFFFF
##4727871.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#343F54
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #472787;
/* rgb */ color: rgb(71, 39, 135);
/* oklch */ color: oklch(37.3% 0.151 292.9);
Tailwind
colors: {
  custom: {
    50: '#8064ab',
    500: '#472787',
    950: '#000000',
  },
}
SCSS
$custom: #472787;
$custom-light: #8064ab;
$custom-dark: #000000;
JSON
{
  "hex": "#472787",
  "rgb": {
    "r": 71,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 260,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3734,
    "c": 0.1506,
    "h": 292.9
  },
  "luminance": 0.0454
}

Semantic roles & 50–950 ramp

primary
#472787
secondary
#95B456
accent
#DF49AD
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #472787

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

Preview Lab → · Contrast checker → · Palette generator →

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