#471F7F#471F7F

#471F7F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.151 H 297.0°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#471F7F
RGBrgb(71, 31, 127)
HSLhsl(265, 61%, 31%)
HSVhsv(265, 76%, 50%)
CMYKcmyk(44.1%, 75.6%, 0%, 50.2%)
CIE-LABlab(23.18, 39.91, -47.00)
CIE-LCHlch(23.18, 61.66, 310.33°)
OKLaboklab(35.56% 0.0684 -0.1344)
OKLCHoklch(35.56% 0.151 297)
XYZxyz(6.9183, 3.8517, 20.4535)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#471F7F #577F1F
analogous
#1F277F #471F7F #771F7F
triadic
#471F7F #7F471F #1F7F47
tetradic
#471F7F #7F1F27 #577F1F #1F7F77
square
#471F7F #7F1F27 #577F1F #1F7F77
split-complementary
#471F7F #7F771F #277F1F
monochromatic
#10071D #2B134E #471F7F #632BB0 #8146D2

Accessibility & contrast

On white

11.86
#471F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #471F7F
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##471F7F#FFFFFF#000000##FFFFFF
##471F7F1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#38384D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #471f7f;
/* rgb */ color: rgb(71, 31, 127);
/* oklch */ color: oklch(35.6% 0.151 297.0);
Tailwind
colors: {
  custom: {
    50: '#805fa5',
    500: '#471f7f',
    950: '#000000',
  },
}
SCSS
$custom: #471f7f;
$custom-light: #805fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#471f7f",
  "rgb": {
    "r": 71,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 265,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35557,
    "c": 0.15087,
    "h": 297
  },
  "luminance": 0.03852
}

Semantic roles & 50–950 ramp

primary
#471F7F
secondary
#86B248
accent
#E444A1
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #471F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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