#471778#471778

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

Color values

HEX#471778
RGBrgb(71, 23, 120)
HSLhsl(270, 68%, 28%)
HSVhsv(270, 81%, 47%)
CMYKcmyk(40.8%, 80.8%, 0%, 52.9%)
CIE-LABlab(21.24, 41.78, -45.71)
CIE-LCHlch(21.24, 61.92, 312.43°)
OKLaboklab(34% 0.0778 -0.1306)
OKLCHoklch(34% 0.152 300.8)
XYZxyz(6.2943, 3.3084, 18.0726)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#471778 #487817
analogous
#171778 #471778 #771778
triadic
#471778 #784717 #177847
tetradic
#471778 #781717 #487817 #177877
square
#471778 #781717 #487817 #177877
split-complementary
#471778 #787717 #177817
monochromatic
#0F051A #290D45 #471778 #6521AB #8432D8

Accessibility & contrast

On white

12.64
#471778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#471778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #471778
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##471778#FFFFFF#000000##FFFFFF
##4717781.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #471778;
/* rgb */ color: rgb(71, 23, 120);
/* oklch */ color: oklch(34.0% 0.152 300.8);
Tailwind
colors: {
  custom: {
    50: '#805aa0',
    500: '#471778',
    950: '#000000',
  },
}
SCSS
$custom: #471778;
$custom-light: #805aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#471778",
  "rgb": {
    "r": 71,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 269.691,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34002,
    "c": 0.152,
    "h": 300.8
  },
  "luminance": 0.03308
}

Semantic roles & 50–950 ramp

primary
#471778
secondary
#76AD3E
accent
#EB3D95
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #471778

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

Preview Lab → · Contrast checker → · Palette generator →

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