#471B81#471B81

#471B81 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.158 H 297.0°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#471B81
RGBrgb(71, 27, 129)
HSLhsl(266, 65%, 31%)
HSVhsv(266, 79%, 51%)
CMYKcmyk(45%, 79.1%, 0%, 49.4%)
CIE-LABlab(22.68, 42.37, -49.07)
CIE-LCHlch(22.68, 64.83, 310.81°)
OKLaboklab(35.27% 0.0716 -0.1405)
OKLCHoklch(35.27% 0.158 297)
XYZxyz(6.9519, 3.7083, 21.1141)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#471B81 #55811B
analogous
#1B2281 #471B81 #7A1B81
triadic
#471B81 #81471B #1B8147
tetradic
#471B81 #811B22 #55811B #1B817A
square
#471B81 #811B22 #55811B #1B817A
split-complementary
#471B81 #817A1B #22811B
monochromatic
#0F061C #2B104E #471B81 #6326B4 #813FD7

Accessibility & contrast

On white

12.06
#471B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#471B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #471B81
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##471B81#FFFFFF#000000##FFFFFF
##471B811.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#00357F
Tritanopia (blue-blind)
#38374D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #471b81;
/* rgb */ color: rgb(71, 27, 129);
/* oklch */ color: oklch(35.3% 0.158 297.0);
Tailwind
colors: {
  custom: {
    50: '#815da6',
    500: '#471b81',
    950: '#000000',
  },
}
SCSS
$custom: #471b81;
$custom-light: #815da6;
$custom-dark: #000000;
JSON
{
  "hex": "#471b81",
  "rgb": {
    "r": 71,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 265.882,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35266,
    "c": 0.15771,
    "h": 297
  },
  "luminance": 0.03708
}

Semantic roles & 50–950 ramp

primary
#471B81
secondary
#84B543
accent
#E83F9F
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #471B81

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

Preview Lab → · Contrast checker → · Palette generator →

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