#472998#472998

#472998 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.169 H 288.4°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#472998
RGBrgb(71, 41, 152)
HSLhsl(256, 58%, 38%)
HSVhsv(256, 73%, 60%)
CMYKcmyk(53.3%, 73%, 0%, 40.4%)
CIE-LABlab(27.27, 41.85, -55.85)
CIE-LCHlch(27.27, 69.79, 306.84°)
OKLaboklab(39.15% 0.0533 -0.1605)
OKLCHoklch(39.15% 0.169 288.4)
XYZxyz(9.0573, 5.1920, 30.2246)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#472998 #7A9829
analogous
#294398 #472998 #7E2998
triadic
#472998 #984729 #299847
tetradic
#472998 #982943 #7A9829 #29987E
square
#472998 #982943 #7A9829 #29987E
split-complementary
#472998 #987E29 #439829
monochromatic
#1A0F38 #301C68 #472998 #5E36C8 #8466D6

Accessibility & contrast

On white

10.30
#472998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#472998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #472998
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##472998#FFFFFF#000000##FFFFFF
##4729981.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#003E96
Tritanopia (blue-blind)
#28465E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #472998;
/* rgb */ color: rgb(71, 41, 152);
/* oklch */ color: oklch(39.2% 0.169 288.4);
Tailwind
colors: {
  custom: {
    50: '#8366b7',
    500: '#472998',
    950: '#000000',
  },
}
SCSS
$custom: #472998;
$custom-light: #8366b7;
$custom-dark: #000000;
JSON
{
  "hex": "#472998",
  "rgb": {
    "r": 71,
    "g": 41,
    "b": 152
  },
  "hsl": {
    "h": 256.216,
    "s": 57.513,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39153,
    "c": 0.16912,
    "h": 288.4
  },
  "luminance": 0.05192
}

Semantic roles & 50–950 ramp

primary
#472998
secondary
#A3BC61
accent
#E147B7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #472998

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

Preview Lab → · Contrast checker → · Palette generator →

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