#472398#472398

#472398 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.176 H 289.4°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#472398
RGBrgb(71, 35, 152)
HSLhsl(258, 63%, 37%)
HSVhsv(258, 77%, 60%)
CMYKcmyk(53.3%, 77%, 0%, 40.4%)
CIE-LABlab(26.18, 44.94, -57.65)
CIE-LCHlch(26.18, 73.09, 307.94°)
OKLaboklab(38.38% 0.0584 -0.1657)
OKLCHoklch(38.38% 0.176 289.4)
XYZxyz(8.8654, 4.8082, 30.1606)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#472398 #749823
analogous
#233998 #472398 #822398
triadic
#472398 #984723 #239847
tetradic
#472398 #982339 #749823 #239882
square
#472398 #982339 #749823 #239882
split-complementary
#472398 #988223 #399823
monochromatic
#190C35 #301866 #472398 #5E2ECA #835CD9

Accessibility & contrast

On white

10.70
#472398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#472398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #472398
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##472398#FFFFFF#000000##FFFFFF
##4723981.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409B
Deuteranopia (green-blind)
#003B96
Tritanopia (blue-blind)
#28445C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #472398;
/* rgb */ color: rgb(71, 35, 152);
/* oklch */ color: oklch(38.4% 0.176 289.4);
Tailwind
colors: {
  custom: {
    50: '#8362b7',
    500: '#472398',
    950: '#000000',
  },
}
SCSS
$custom: #472398;
$custom-light: #8362b7;
$custom-dark: #000000;
JSON
{
  "hex": "#472398",
  "rgb": {
    "r": 71,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 258.462,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.38381,
    "c": 0.17569,
    "h": 289.4
  },
  "luminance": 0.04809
}

Semantic roles & 50–950 ramp

primary
#472398
secondary
#9FBE59
accent
#E642B3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #472398

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

Preview Lab → · Contrast checker → · Palette generator →

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