#472D87#472D87

#472D87 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.2% C 0.143 H 291.5°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#472D87
RGBrgb(71, 45, 135)
HSLhsl(257, 50%, 35%)
HSVhsv(257, 67%, 53%)
CMYKcmyk(47.4%, 66.7%, 0%, 47.1%)
CIE-LABlab(26.64, 34.51, -46.39)
CIE-LCHlch(26.64, 57.82, 306.65°)
OKLaboklab(38.24% 0.0522 -0.1327)
OKLCHoklch(38.24% 0.143 291.5)
XYZxyz(7.9089, 4.9654, 23.4587)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#472D87 #6D872D
analogous
#2D4087 #472D87 #742D87
triadic
#472D87 #87472D #2D8747
tetradic
#472D87 #872D40 #6D872D #2D8774
square
#472D87 #872D40 #6D872D #2D8774
split-complementary
#472D87 #87742D #40872D
monochromatic
#170E2B #2F1E59 #472D87 #5F3CB5 #8163CB

Accessibility & contrast

On white

10.54
#472D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#472D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #472D87
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##472D87#FFFFFF#000000##FFFFFF
##472D871.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408A
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#344256
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #472d87;
/* rgb */ color: rgb(71, 45, 135);
/* oklch */ color: oklch(38.2% 0.143 291.5);
Tailwind
colors: {
  custom: {
    50: '#8067ab',
    500: '#472d87',
    950: '#000000',
  },
}
SCSS
$custom: #472d87;
$custom-light: #8067ab;
$custom-dark: #000000;
JSON
{
  "hex": "#472d87",
  "rgb": {
    "r": 71,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 257.333,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38242,
    "c": 0.14261,
    "h": 291.5
  },
  "luminance": 0.04966
}

Semantic roles & 50–950 ramp

primary
#472D87
secondary
#9AB25E
accent
#DA4EB1
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #472D87

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

Preview Lab → · Contrast checker → · Palette generator →

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