#472A98#472A98

#472A98 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.3% C 0.168 H 288.2°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#472A98
RGBrgb(71, 42, 152)
HSLhsl(256, 57%, 38%)
HSVhsv(256, 72%, 60%)
CMYKcmyk(53.3%, 72.4%, 0%, 40.4%)
CIE-LABlab(27.47, 41.31, -55.54)
CIE-LCHlch(27.47, 69.21, 306.64°)
OKLaboklab(39.29% 0.0524 -0.1596)
OKLCHoklch(39.29% 0.168 288.2)
XYZxyz(9.0923, 5.2621, 30.2363)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#472A98 #7B982A
analogous
#2A4498 #472A98 #7E2A98
triadic
#472A98 #98472A #2A9847
tetradic
#472A98 #982A44 #7B982A #2A987E
square
#472A98 #982A44 #7B982A #2A987E
split-complementary
#472A98 #987E2A #44982A
monochromatic
#1A1038 #311D68 #472A98 #5D37C8 #8467D5

Accessibility & contrast

On white

10.23
#472A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#472A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #472A98
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##472A98#FFFFFF#000000##FFFFFF
##472A981.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #472a98;
/* rgb */ color: rgb(71, 42, 152);
/* oklch */ color: oklch(39.3% 0.168 288.2);
Tailwind
colors: {
  custom: {
    50: '#8366b7',
    500: '#472a98',
    950: '#000000',
  },
}
SCSS
$custom: #472a98;
$custom-light: #8366b7;
$custom-dark: #000000;
JSON
{
  "hex": "#472a98",
  "rgb": {
    "r": 71,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 255.818,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.3929,
    "c": 0.16796,
    "h": 288.2
  },
  "luminance": 0.05263
}

Semantic roles & 50–950 ramp

primary
#472A98
secondary
#A4BB62
accent
#E048B8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #472A98

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

Preview Lab → · Contrast checker → · Palette generator →

#472A98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva