#471881#471881

#471881 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.161 H 297.5°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#471881
RGBrgb(71, 24, 129)
HSLhsl(267, 69%, 30%)
HSVhsv(267, 81%, 51%)
CMYKcmyk(45%, 81.4%, 0%, 49.4%)
CIE-LABlab(22.22, 43.69, -49.82)
CIE-LCHlch(22.22, 66.26, 311.25°)
OKLaboklab(34.95% 0.0742 -0.1427)
OKLCHoklch(34.95% 0.161 297.5)
XYZxyz(6.8866, 3.5777, 21.0924)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#471881 #528118
analogous
#181E81 #471881 #7B1881
triadic
#471881 #814718 #188147
tetradic
#471881 #81181E #528118 #18817B
square
#471881 #81181E #528118 #18817B
split-complementary
#471881 #817B18 #1E8118
monochromatic
#0E051A #2B0E4D #471881 #6322B5 #8139DA

Accessibility & contrast

On white

12.24
#471881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#471881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #471881
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##471881#FFFFFF#000000##FFFFFF
##4718811.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#00347F
Tritanopia (blue-blind)
#38354D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #471881;
/* rgb */ color: rgb(71, 24, 129);
/* oklch */ color: oklch(34.9% 0.161 297.5);
Tailwind
colors: {
  custom: {
    50: '#815ba7',
    500: '#471881',
    950: '#000000',
  },
}
SCSS
$custom: #471881;
$custom-light: #815ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#471881",
  "rgb": {
    "r": 71,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 266.857,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.34946,
    "c": 0.16081,
    "h": 297.5
  },
  "luminance": 0.03578
}

Semantic roles & 50–950 ramp

primary
#471881
secondary
#81B540
accent
#EB3C9D
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #471881

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

Preview Lab → · Contrast checker → · Palette generator →

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