#472799#472799

#472799 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.173 H 288.5°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#472799
RGBrgb(71, 39, 153)
HSLhsl(257, 59%, 38%)
HSVhsv(257, 75%, 60%)
CMYKcmyk(53.6%, 74.5%, 0%, 40%)
CIE-LABlab(26.99, 43.20, -56.93)
CIE-LCHlch(26.99, 71.47, 307.19°)
OKLaboklab(38.98% 0.0548 -0.1636)
OKLCHoklch(38.98% 0.173 288.5)
XYZxyz(9.0721, 5.0901, 30.6353)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#472799 #799927
analogous
#274099 #472799 #802799
triadic
#472799 #994727 #279947
tetradic
#472799 #992740 #799927 #279980
square
#472799 #992740 #799927 #279980
split-complementary
#472799 #998027 #409927
monochromatic
#1A0E37 #301B68 #472799 #5E33CA #8463D7

Accessibility & contrast

On white

10.41
#472799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#472799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #472799
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##472799#FFFFFF#000000##FFFFFF
##4727991.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429C
Deuteranopia (green-blind)
#003D97
Tritanopia (blue-blind)
#27465E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #472799;
/* rgb */ color: rgb(71, 39, 153);
/* oklch */ color: oklch(39.0% 0.173 288.5);
Tailwind
colors: {
  custom: {
    50: '#8364b8',
    500: '#472799',
    950: '#000000',
  },
}
SCSS
$custom: #472799;
$custom-light: #8364b8;
$custom-dark: #000000;
JSON
{
  "hex": "#472799",
  "rgb": {
    "r": 71,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 256.842,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38979,
    "c": 0.17259,
    "h": 288.5
  },
  "luminance": 0.05091
}

Semantic roles & 50–950 ramp

primary
#472799
secondary
#A3BD5F
accent
#E345B6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #472799

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

Preview Lab → · Contrast checker → · Palette generator →

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