#471877#471877

#471877 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.150 H 301.0°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#471877
RGBrgb(71, 24, 119)
HSLhsl(270, 66%, 28%)
HSVhsv(270, 80%, 47%)
CMYKcmyk(40.3%, 79.8%, 0%, 53.3%)
CIE-LABlab(21.30, 41.08, -44.97)
CIE-LCHlch(21.30, 60.91, 312.41°)
OKLaboklab(34.02% 0.0772 -0.1284)
OKLCHoklch(34.02% 0.15 301)
XYZxyz(6.2541, 3.3247, 17.7614)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#471877 #487718
analogous
#181877 #471877 #761877
triadic
#471877 #774718 #187747
tetradic
#471877 #771818 #487718 #187776
square
#471877 #771818 #487718 #187776
split-complementary
#471877 #777618 #187718
monochromatic
#0F0519 #290E44 #471877 #6522AA #8433D6

Accessibility & contrast

On white

12.61
#471877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#471877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #471877
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##471877#FFFFFF#000000##FFFFFF
##4718771.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337A
Deuteranopia (green-blind)
#003375
Tritanopia (blue-blind)
#3C3147
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #471877;
/* rgb */ color: rgb(71, 24, 119);
/* oklch */ color: oklch(34.0% 0.150 301.0);
Tailwind
colors: {
  custom: {
    50: '#7f5b9f',
    500: '#471877',
    950: '#000000',
  },
}
SCSS
$custom: #471877;
$custom-light: #7f5b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#471877",
  "rgb": {
    "r": 71,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 269.684,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34017,
    "c": 0.14983,
    "h": 301
  },
  "luminance": 0.03325
}

Semantic roles & 50–950 ramp

primary
#471877
secondary
#76AC3F
accent
#E93E95
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #471877

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

Preview Lab → · Contrast checker → · Palette generator →

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