#471788#471788

#471788 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.169 H 295.4°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#471788
RGBrgb(71, 23, 136)
HSLhsl(265, 71%, 31%)
HSVhsv(265, 83%, 53%)
CMYKcmyk(47.8%, 83.1%, 0%, 46.7%)
CIE-LABlab(22.76, 45.94, -53.35)
CIE-LCHlch(22.76, 70.40, 310.73°)
OKLaboklab(35.52% 0.0726 -0.153)
OKLCHoklch(35.52% 0.169 295.4)
XYZxyz(7.3477, 3.7298, 23.6206)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#471788 #588817
analogous
#171F88 #471788 #7F1788
triadic
#471788 #884717 #178847
tetradic
#471788 #88171F #588817 #17887F
square
#471788 #88171F #588817 #17887F
split-complementary
#471788 #887F17 #1F8817
monochromatic
#10051F #2C0E54 #471788 #6220BC #803BDE

Accessibility & contrast

On white

12.03
#471788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#471788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #471788
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##471788#FFFFFF#000000##FFFFFF
##4717881.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#003586
Tritanopia (blue-blind)
#343850
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #471788;
/* rgb */ color: rgb(71, 23, 136);
/* oklch */ color: oklch(35.5% 0.169 295.4);
Tailwind
colors: {
  custom: {
    50: '#825bac',
    500: '#471788',
    950: '#000000',
  },
}
SCSS
$custom: #471788;
$custom-light: #825bac;
$custom-dark: #000000;
JSON
{
  "hex": "#471788",
  "rgb": {
    "r": 71,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 265.487,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35522,
    "c": 0.16937,
    "h": 295.4
  },
  "luminance": 0.0373
}

Semantic roles & 50–950 ramp

primary
#471788
secondary
#87BC3F
accent
#EE3AA1
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #471788

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

Preview Lab → · Contrast checker → · Palette generator →

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