#472A87#472A87

#472A87 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.8% C 0.147 H 292.2°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#472A87
RGBrgb(71, 42, 135)
HSLhsl(259, 53%, 35%)
HSVhsv(259, 69%, 53%)
CMYKcmyk(47.4%, 68.9%, 0%, 47.1%)
CIE-LABlab(25.99, 36.26, -47.43)
CIE-LCHlch(25.99, 59.70, 307.40°)
OKLaboklab(37.78% 0.0555 -0.1358)
OKLCHoklch(37.78% 0.147 292.2)
XYZxyz(7.7985, 4.7445, 23.4219)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#472A87 #6A872A
analogous
#2A3B87 #472A87 #762A87
triadic
#472A87 #87472A #2A8747
tetradic
#472A87 #872A3B #6A872A #2A8776
square
#472A87 #872A3B #6A872A #2A8776
split-complementary
#472A87 #87762A #3B872A
monochromatic
#160D2A #2E1B58 #472A87 #6039B6 #815ECD

Accessibility & contrast

On white

10.77
#472A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#472A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #472A87
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##472A87#FFFFFF#000000##FFFFFF
##472A871.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#003C85
Tritanopia (blue-blind)
#344155
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #472a87;
/* rgb */ color: rgb(71, 42, 135);
/* oklch */ color: oklch(37.8% 0.147 292.2);
Tailwind
colors: {
  custom: {
    50: '#8066ab',
    500: '#472a87',
    950: '#000000',
  },
}
SCSS
$custom: #472a87;
$custom-light: #8066ab;
$custom-dark: #000000;
JSON
{
  "hex": "#472a87",
  "rgb": {
    "r": 71,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 258.71,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.37779,
    "c": 0.14668,
    "h": 292.2
  },
  "luminance": 0.04745
}

Semantic roles & 50–950 ramp

primary
#472A87
secondary
#97B35A
accent
#DC4CAF
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #472A87

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

Preview Lab → · Contrast checker → · Palette generator →

#472A87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva