#472178#472178

#472178 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.2% C 0.140 H 299.0°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#472178
RGBrgb(71, 33, 120)
HSLhsl(266, 57%, 30%)
HSVhsv(266, 73%, 47%)
CMYKcmyk(40.8%, 72.5%, 0%, 52.9%)
CIE-LABlab(22.94, 36.95, -42.93)
CIE-LCHlch(22.94, 56.64, 310.72°)
OKLaboklab(35.2% 0.0678 -0.1225)
OKLCHoklch(35.2% 0.14 299)
XYZxyz(6.5317, 3.7833, 18.1518)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#472178 #527821
analogous
#212678 #472178 #732178
triadic
#472178 #784721 #217847
tetradic
#472178 #782126 #527821 #217873
square
#472178 #782126 #527821 #217873
split-complementary
#472178 #787321 #267821
monochromatic
#0E0718 #2B1448 #472178 #632EA8 #8147CC

Accessibility & contrast

On white

11.95
#472178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#472178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #472178
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##472178#FFFFFF#000000##FFFFFF
##4721781.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#003676
Tritanopia (blue-blind)
#3B364A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #472178;
/* rgb */ color: rgb(71, 33, 120);
/* oklch */ color: oklch(35.2% 0.140 299.0);
Tailwind
colors: {
  custom: {
    50: '#7f60a0',
    500: '#472178',
    950: '#000000',
  },
}
SCSS
$custom: #472178;
$custom-light: #7f60a0;
$custom-dark: #000000;
JSON
{
  "hex": "#472178",
  "rgb": {
    "r": 71,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 266.207,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.35204,
    "c": 0.14003,
    "h": 299
  },
  "luminance": 0.03783
}

Semantic roles & 50–950 ramp

primary
#472178
secondary
#81AB4A
accent
#E0489E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0A050F
muted
#7C797E

Preview Lab

Preview with #472178

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

Preview Lab → · Contrast checker → · Palette generator →

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