#472F87#472F87

#472F87 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.6% C 0.140 H 290.9°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#472F87
RGBrgb(71, 47, 135)
HSLhsl(256, 48%, 36%)
HSVhsv(256, 65%, 53%)
CMYKcmyk(47.4%, 65.2%, 0%, 47.1%)
CIE-LABlab(27.08, 33.32, -45.67)
CIE-LCHlch(27.08, 56.53, 306.12°)
OKLaboklab(38.56% 0.05 -0.1306)
OKLCHoklch(38.56% 0.14 290.9)
XYZxyz(7.9870, 5.1216, 23.4847)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#472F87 #6F872F
analogous
#2F4387 #472F87 #732F87
triadic
#472F87 #87472F #2F8747
tetradic
#472F87 #872F43 #6F872F #2F8773
square
#472F87 #872F43 #6F872F #2F8773
split-complementary
#472F87 #87732F #43872F
monochromatic
#170F2C #2F1F5A #472F87 #5F3FB4 #8266CA

Accessibility & contrast

On white

10.37
#472F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#472F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #472F87
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##472F87#FFFFFF#000000##FFFFFF
##472F871.0010.372.0210.37
#FFFFFF10.371.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#334456
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #472f87;
/* rgb */ color: rgb(71, 47, 135);
/* oklch */ color: oklch(38.6% 0.140 290.9);
Tailwind
colors: {
  custom: {
    50: '#8069ab',
    500: '#472f87',
    950: '#000000',
  },
}
SCSS
$custom: #472f87;
$custom-light: #8069ab;
$custom-dark: #000000;
JSON
{
  "hex": "#472f87",
  "rgb": {
    "r": 71,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 256.364,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38562,
    "c": 0.13982,
    "h": 290.9
  },
  "luminance": 0.05122
}

Semantic roles & 50–950 ramp

primary
#472F87
secondary
#9BB161
accent
#D850B3
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #472F87

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

Preview Lab → · Contrast checker → · Palette generator →

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