#472987#472987

#472987 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.6% C 0.148 H 292.5°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#472987
RGBrgb(71, 41, 135)
HSLhsl(259, 53%, 35%)
HSVhsv(259, 70%, 53%)
CMYKcmyk(47.4%, 69.6%, 0%, 47.1%)
CIE-LABlab(25.79, 36.83, -47.77)
CIE-LCHlch(25.79, 60.32, 307.63°)
OKLaboklab(37.63% 0.0566 -0.1368)
OKLCHoklch(37.63% 0.148 292.5)
XYZxyz(7.7634, 4.6745, 23.4102)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#472987 #698729
analogous
#293A87 #472987 #762987
triadic
#472987 #874729 #298747
tetradic
#472987 #87293A #698729 #298776
square
#472987 #87293A #698729 #298776
split-complementary
#472987 #877629 #3A8729
monochromatic
#160C29 #2E1B58 #472987 #6037B6 #815DCE

Accessibility & contrast

On white

10.85
#472987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#472987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #472987
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##472987#FFFFFF#000000##FFFFFF
##4729871.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#344054
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #472987;
/* rgb */ color: rgb(71, 41, 135);
/* oklch */ color: oklch(37.6% 0.148 292.5);
Tailwind
colors: {
  custom: {
    50: '#8065ab',
    500: '#472987',
    950: '#000000',
  },
}
SCSS
$custom: #472987;
$custom-light: #8065ab;
$custom-dark: #000000;
JSON
{
  "hex": "#472987",
  "rgb": {
    "r": 71,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 259.149,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3763,
    "c": 0.14801,
    "h": 292.5
  },
  "luminance": 0.04675
}

Semantic roles & 50–950 ramp

primary
#472987
secondary
#96B359
accent
#DD4BAE
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #472987

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

Preview Lab → · Contrast checker → · Palette generator →

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