#471A7E#471A7E

#471A7E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.155 H 298.2°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#471A7E
RGBrgb(71, 26, 126)
HSLhsl(267, 66%, 30%)
HSVhsv(267, 79%, 49%)
CMYKcmyk(43.7%, 79.4%, 0%, 50.6%)
CIE-LABlab(22.25, 42.02, -47.88)
CIE-LCHlch(22.25, 63.71, 311.27°)
OKLaboklab(34.88% 0.0734 -0.137)
OKLCHoklch(34.88% 0.155 298.2)
XYZxyz(6.7328, 3.5846, 20.0718)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#471A7E #517E1A
analogous
#1A1F7E #471A7E #791A7E
triadic
#471A7E #7E471A #1A7E47
tetradic
#471A7E #7E1A1F #517E1A #1A7E79
square
#471A7E #7E1A1F #517E1A #1A7E79
split-complementary
#471A7E #7E791A #1F7E1A
monochromatic
#0E0519 #2A104B #471A7E #6424B1 #813CD7

Accessibility & contrast

On white

12.23
#471A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#471A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #471A7E
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##471A7E#FFFFFF#000000##FFFFFF
##471A7E1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#39354B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #471a7e;
/* rgb */ color: rgb(71, 26, 126);
/* oklch */ color: oklch(34.9% 0.155 298.2);
Tailwind
colors: {
  custom: {
    50: '#805ca4',
    500: '#471a7e',
    950: '#000000',
  },
}
SCSS
$custom: #471a7e;
$custom-light: #805ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#471a7e",
  "rgb": {
    "r": 71,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 267,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34877,
    "c": 0.15541,
    "h": 298.2
  },
  "luminance": 0.03585
}

Semantic roles & 50–950 ramp

primary
#471A7E
secondary
#80B242
accent
#E93F9C
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #471A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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