#472AA4#472AA4

#472AA4 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.183 H 285.8°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#472AA4
RGBrgb(71, 42, 164)
HSLhsl(254, 59%, 40%)
HSVhsv(254, 74%, 64%)
CMYKcmyk(56.7%, 74.4%, 0%, 35.7%)
CIE-LABlab(28.58, 44.88, -61.02)
CIE-LCHlch(28.58, 75.75, 306.33°)
OKLaboklab(40.42% 0.0497 -0.1756)
OKLCHoklch(40.42% 0.183 285.8)
XYZxyz(10.1253, 5.6753, 35.6767)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#472AA4 #87A42A
analogous
#2A4AA4 #472AA4 #842AA4
triadic
#472AA4 #A4472A #2AA447
tetradic
#472AA4 #A42A4A #87A42A #2AA484
square
#472AA4 #A42A4A #87A42A #2AA484
split-complementary
#472AA4 #A4842A #4AA42A
monochromatic
#1D1143 #321E73 #472AA4 #603ECD #886EDA

Accessibility & contrast

On white

9.84
#472AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#472AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #472AA4
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##472AA4#FFFFFF#000000##FFFFFF
##472AA41.009.842.149.84
#FFFFFF9.841.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A8
Deuteranopia (green-blind)
#0040A2
Tritanopia (blue-blind)
#1B4C65
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #472aa4;
/* rgb */ color: rgb(71, 42, 164);
/* oklch */ color: oklch(40.4% 0.183 285.8);
Tailwind
colors: {
  custom: {
    50: '#8567c0',
    500: '#472aa4',
    950: '#000000',
  },
}
SCSS
$custom: #472aa4;
$custom-light: #8567c0;
$custom-dark: #000000;
JSON
{
  "hex": "#472aa4",
  "rgb": {
    "r": 71,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 254.262,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40415,
    "c": 0.18254,
    "h": 285.8
  },
  "luminance": 0.05676
}

Semantic roles & 50–950 ramp

primary
#472AA4
secondary
#ACC169
accent
#E245BD
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #472AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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