#472AA5#472AA5

#472AA5 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.184 H 285.6°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#472AA5
RGBrgb(71, 42, 165)
HSLhsl(254, 59%, 41%)
HSVhsv(254, 75%, 65%)
CMYKcmyk(57%, 74.5%, 0%, 35.3%)
CIE-LABlab(28.67, 45.18, -61.47)
CIE-LCHlch(28.67, 76.29, 306.31°)
OKLaboklab(40.51% 0.0495 -0.177)
OKLCHoklch(40.51% 0.184 285.6)
XYZxyz(10.2160, 5.7115, 36.1541)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#472AA5 #88A52A
analogous
#2A4BA5 #472AA5 #842AA5
triadic
#472AA5 #A5472A #2AA547
tetradic
#472AA5 #A52A4B #88A52A #2AA584
square
#472AA5 #A52A4B #88A52A #2AA584
split-complementary
#472AA5 #A5842A #4BA52A
monochromatic
#1D1143 #321E74 #472AA5 #603ECE #886FDA

Accessibility & contrast

On white

9.80
#472AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #472AA5
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##472AA5#FFFFFF#000000##FFFFFF
##472AA51.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#0040A3
Tritanopia (blue-blind)
#1A4C65
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #472aa5;
/* rgb */ color: rgb(71, 42, 165);
/* oklch */ color: oklch(40.5% 0.184 285.6);
Tailwind
colors: {
  custom: {
    50: '#8567c1',
    500: '#472aa5',
    950: '#000000',
  },
}
SCSS
$custom: #472aa5;
$custom-light: #8567c1;
$custom-dark: #000000;
JSON
{
  "hex": "#472aa5",
  "rgb": {
    "r": 71,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 254.146,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40511,
    "c": 0.18374,
    "h": 285.6
  },
  "luminance": 0.05712
}

Semantic roles & 50–950 ramp

primary
#472AA5
secondary
#ADC169
accent
#E345BD
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #472AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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