#471781#471781

#471781 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.162 H 297.6°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#471781
RGBrgb(71, 23, 129)
HSLhsl(267, 70%, 30%)
HSVhsv(267, 82%, 51%)
CMYKcmyk(45%, 82.2%, 0%, 49.4%)
CIE-LABlab(22.08, 44.11, -50.06)
CIE-LCHlch(22.08, 66.72, 311.39°)
OKLaboklab(34.85% 0.075 -0.1434)
OKLCHoklch(34.85% 0.162 297.6)
XYZxyz(6.8663, 3.5372, 21.0856)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#471781 #518117
analogous
#171C81 #471781 #7C1781
triadic
#471781 #814717 #178147
tetradic
#471781 #81171C #518117 #17817C
square
#471781 #81171C #518117 #17817C
split-complementary
#471781 #817C17 #1C8117
monochromatic
#0E051A #2A0E4D #471781 #6420B5 #8137DB

Accessibility & contrast

On white

12.30
#471781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#471781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #471781
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##471781#FFFFFF#000000##FFFFFF
##4717811.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #471781;
/* rgb */ color: rgb(71, 23, 129);
/* oklch */ color: oklch(34.8% 0.162 297.6);
Tailwind
colors: {
  custom: {
    50: '#815ba7',
    500: '#471781',
    950: '#000000',
  },
}
SCSS
$custom: #471781;
$custom-light: #815ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#471781",
  "rgb": {
    "r": 71,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 267.17,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34845,
    "c": 0.16178,
    "h": 297.6
  },
  "luminance": 0.03537
}

Semantic roles & 50–950 ramp

primary
#471781
secondary
#80B53E
accent
#ED3B9C
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #471781

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

Preview Lab → · Contrast checker → · Palette generator →

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