#471F87#471F87

#471F87 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.160 H 294.5°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#471F87
RGBrgb(71, 31, 135)
HSLhsl(263, 63%, 33%)
HSVhsv(263, 77%, 53%)
CMYKcmyk(47.4%, 77%, 0%, 47.1%)
CIE-LABlab(23.90, 42.11, -50.85)
CIE-LCHlch(23.90, 66.03, 309.63°)
OKLaboklab(36.29% 0.0664 -0.1458)
OKLCHoklch(36.29% 0.16 294.5)
XYZxyz(7.4605, 4.0686, 23.3092)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#471F87 #5F871F
analogous
#1F2B87 #471F87 #7B1F87
triadic
#471F87 #87471F #1F8747
tetradic
#471F87 #871F2B #5F871F #1F877B
square
#471F87 #871F2B #5F871F #1F877B
split-complementary
#471F87 #877B1F #2B871F
monochromatic
#130823 #2D1455 #471F87 #612AB9 #804BD6

Accessibility & contrast

On white

11.58
#471F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#471F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #471F87
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##471F87#FFFFFF#000000##FFFFFF
##471F871.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003785
Tritanopia (blue-blind)
#343B52
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #471f87;
/* rgb */ color: rgb(71, 31, 135);
/* oklch */ color: oklch(36.3% 0.160 294.5);
Tailwind
colors: {
  custom: {
    50: '#815fab',
    500: '#471f87',
    950: '#000000',
  },
}
SCSS
$custom: #471f87;
$custom-light: #815fab;
$custom-dark: #000000;
JSON
{
  "hex": "#471f87",
  "rgb": {
    "r": 71,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 263.077,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36288,
    "c": 0.16019,
    "h": 294.5
  },
  "luminance": 0.04069
}

Semantic roles & 50–950 ramp

primary
#471F87
secondary
#8EB84A
accent
#E642A7
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #471F87

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

Preview Lab → · Contrast checker → · Palette generator →

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