#471A87#471A87

#471A87 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.165 H 295.3°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#471A87
RGBrgb(71, 26, 135)
HSLhsl(265, 68%, 32%)
HSVhsv(265, 81%, 53%)
CMYKcmyk(47.4%, 80.7%, 0%, 47.1%)
CIE-LABlab(23.09, 44.42, -52.17)
CIE-LCHlch(23.09, 68.52, 310.41°)
OKLaboklab(35.73% 0.0707 -0.1496)
OKLCHoklch(35.73% 0.165 295.3)
XYZxyz(7.3399, 3.8275, 23.2690)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#471A87 #5A871A
analogous
#1A2387 #471A87 #7E1A87
triadic
#471A87 #87471A #1A8747
tetradic
#471A87 #871A23 #5A871A #1A877E
square
#471A87 #871A23 #5A871A #1A877E
split-complementary
#471A87 #877E1A #23871A
monochromatic
#110620 #2C1054 #471A87 #6224BA #8041DA

Accessibility & contrast

On white

11.89
#471A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#471A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #471A87
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##471A87#FFFFFF#000000##FFFFFF
##471A871.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#353950
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #471a87;
/* rgb */ color: rgb(71, 26, 135);
/* oklch */ color: oklch(35.7% 0.165 295.3);
Tailwind
colors: {
  custom: {
    50: '#815dab',
    500: '#471a87',
    950: '#000000',
  },
}
SCSS
$custom: #471a87;
$custom-light: #815dab;
$custom-dark: #000000;
JSON
{
  "hex": "#471a87",
  "rgb": {
    "r": 71,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 264.771,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.35726,
    "c": 0.16544,
    "h": 295.3
  },
  "luminance": 0.03828
}

Semantic roles & 50–950 ramp

primary
#471A87
secondary
#89BA42
accent
#EB3DA3
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #471A87

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

Preview Lab → · Contrast checker → · Palette generator →

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