#471F78#471F78

#471F78 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.143 H 299.4°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#471F78
RGBrgb(71, 31, 120)
HSLhsl(267, 59%, 30%)
HSVhsv(267, 74%, 47%)
CMYKcmyk(40.8%, 74.2%, 0%, 52.9%)
CIE-LABlab(22.57, 37.99, -43.54)
CIE-LCHlch(22.57, 57.78, 311.11°)
OKLaboklab(34.94% 0.07 -0.1243)
OKLCHoklch(34.94% 0.143 299.4)
XYZxyz(6.4778, 3.6756, 18.1338)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#471F78 #50781F
analogous
#1F2478 #471F78 #731F78
triadic
#471F78 #78471F #1F7847
tetradic
#471F78 #781F24 #50781F #1F7873
square
#471F78 #781F24 #50781F #1F7873
split-complementary
#471F78 #78731F #24781F
monochromatic
#0E0618 #2A1247 #471F78 #642CA9 #8243CE

Accessibility & contrast

On white

12.10
#471F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#471F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #471F78
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##471F78#FFFFFF#000000##FFFFFF
##471F781.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#003576
Tritanopia (blue-blind)
#3C3549
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #471f78;
/* rgb */ color: rgb(71, 31, 120);
/* oklch */ color: oklch(34.9% 0.143 299.4);
Tailwind
colors: {
  custom: {
    50: '#7f5ea0',
    500: '#471f78',
    950: '#000000',
  },
}
SCSS
$custom: #471f78;
$custom-light: #7f5ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#471f78",
  "rgb": {
    "r": 71,
    "g": 31,
    "b": 120
  },
  "hsl": {
    "h": 266.966,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34938,
    "c": 0.14264,
    "h": 299.4
  },
  "luminance": 0.03676
}

Semantic roles & 50–950 ramp

primary
#471F78
secondary
#7EAB47
accent
#E2469C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #471F78

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

Preview Lab → · Contrast checker → · Palette generator →

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