#471872#471872

#471872 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.144 H 302.9°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#471872
RGBrgb(71, 24, 114)
HSLhsl(271, 65%, 27%)
HSVhsv(271, 79%, 45%)
CMYKcmyk(37.7%, 78.9%, 0%, 55.3%)
CIE-LABlab(20.86, 39.79, -42.48)
CIE-LCHlch(20.86, 58.20, 313.13°)
OKLaboklab(33.57% 0.0785 -0.1211)
OKLCHoklch(33.57% 0.144 302.9)
XYZxyz(5.9617, 3.2078, 16.2214)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#471872 #437218
analogous
#1A1872 #471872 #721870
triadic
#471872 #724718 #187247
tetradic
#471872 #721A18 #437218 #187072
square
#471872 #721A18 #437218 #187072
split-complementary
#471872 #707218 #18721A
monochromatic
#100519 #280D3F #471872 #6623A5 #8631D4

Accessibility & contrast

On white

12.79
#471872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#471872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #471872
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##471872#FFFFFF#000000##FFFFFF
##4718721.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003175
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#3E2F44
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #471872;
/* rgb */ color: rgb(71, 24, 114);
/* oklch */ color: oklch(33.6% 0.144 302.9);
Tailwind
colors: {
  custom: {
    50: '#7f5a9b',
    500: '#471872',
    950: '#000000',
  },
}
SCSS
$custom: #471872;
$custom-light: #7f5a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#471872",
  "rgb": {
    "r": 71,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 271.333,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.33569,
    "c": 0.14432,
    "h": 302.9
  },
  "luminance": 0.03208
}

Semantic roles & 50–950 ramp

primary
#471872
secondary
#71A73E
accent
#E84090
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #471872

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

Preview Lab → · Contrast checker → · Palette generator →

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