#471581#471581

#471581 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.164 H 297.9°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#471581
RGBrgb(71, 21, 129)
HSLhsl(268, 72%, 29%)
HSVhsv(268, 84%, 51%)
CMYKcmyk(45%, 83.7%, 0%, 49.4%)
CIE-LABlab(21.80, 44.91, -50.51)
CIE-LCHlch(21.80, 67.59, 311.64°)
OKLaboklab(34.65% 0.0765 -0.1447)
OKLCHoklch(34.65% 0.164 297.9)
XYZxyz(6.8281, 3.4608, 21.0729)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#471581 #4F8115
analogous
#151981 #471581 #7D1581
triadic
#471581 #814715 #158147
tetradic
#471581 #811519 #4F8115 #15817D
square
#471581 #811519 #4F8115 #15817D
split-complementary
#471581 #817D15 #198115
monochromatic
#0E041A #2A0C4C #471581 #641EB6 #8233DE

Accessibility & contrast

On white

12.41
#471581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#471581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #471581
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##471581#FFFFFF#000000##FFFFFF
##4715811.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#00337F
Tritanopia (blue-blind)
#38344C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #471581;
/* rgb */ color: rgb(71, 21, 129);
/* oklch */ color: oklch(34.7% 0.164 297.9);
Tailwind
colors: {
  custom: {
    50: '#815aa7',
    500: '#471581',
    950: '#000000',
  },
}
SCSS
$custom: #471581;
$custom-light: #815aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#471581",
  "rgb": {
    "r": 71,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 267.778,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34653,
    "c": 0.16366,
    "h": 297.9
  },
  "luminance": 0.03461
}

Semantic roles & 50–950 ramp

primary
#471581
secondary
#7DB63C
accent
#EF399B
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #471581

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

Preview Lab → · Contrast checker → · Palette generator →

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