#472877#472877

#472877 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.1% C 0.129 H 297.6°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#472877
RGBrgb(71, 40, 119)
HSLhsl(264, 50%, 31%)
HSVhsv(264, 66%, 47%)
CMYKcmyk(40.3%, 66.4%, 0%, 53.3%)
CIE-LABlab(24.29, 32.76, -40.11)
CIE-LCHlch(24.29, 51.79, 309.23°)
OKLaboklab(36.14% 0.0598 -0.1142)
OKLCHoklch(36.14% 0.129 297.6)
XYZxyz(6.6863, 4.1890, 17.9055)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#472877 #587728
analogous
#283077 #472877 #6E2877
triadic
#472877 #774728 #287747
tetradic
#472877 #772830 #587728 #28776E
square
#472877 #772830 #587728 #28776E
split-complementary
#472877 #776E28 #307728
monochromatic
#10091B #2C1949 #472877 #6237A5 #8054C5

Accessibility & contrast

On white

11.43
#472877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#472877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #472877
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##472877#FFFFFF#000000##FFFFFF
##4728771.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A79
Deuteranopia (green-blind)
#003975
Tritanopia (blue-blind)
#3C3A4B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #472877;
/* rgb */ color: rgb(71, 40, 119);
/* oklch */ color: oklch(36.1% 0.129 297.6);
Tailwind
colors: {
  custom: {
    50: '#7e649f',
    500: '#472877',
    950: '#000000',
  },
}
SCSS
$custom: #472877;
$custom-light: #7e649f;
$custom-dark: #000000;
JSON
{
  "hex": "#472877",
  "rgb": {
    "r": 71,
    "g": 40,
    "b": 119
  },
  "hsl": {
    "h": 263.544,
    "s": 49.686,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36145,
    "c": 0.12894,
    "h": 297.6
  },
  "luminance": 0.04189
}

Semantic roles & 50–950 ramp

primary
#472877
secondary
#87A952
accent
#D94FA3
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#0A050E
muted
#7C7A7E

Preview Lab

Preview with #472877

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

Preview Lab → · Contrast checker → · Palette generator →

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