#472897#472897

#472897 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.169 H 288.8°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#472897
RGBrgb(71, 40, 151)
HSLhsl(257, 58%, 37%)
HSVhsv(257, 74%, 59%)
CMYKcmyk(53%, 73.5%, 0%, 40.8%)
CIE-LABlab(26.99, 42.09, -55.70)
CIE-LCHlch(26.99, 69.82, 307.07°)
OKLaboklab(38.92% 0.0544 -0.16)
OKLCHoklch(38.92% 0.169 288.8)
XYZxyz(8.9416, 5.0911, 29.7837)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#472897 #789728
analogous
#284097 #472897 #7F2897
triadic
#472897 #974728 #289747
tetradic
#472897 #972840 #789728 #28977F
square
#472897 #972840 #789728 #28977F
split-complementary
#472897 #977F28 #409728
monochromatic
#1A0E36 #301B67 #472897 #5E35C7 #8364D6

Accessibility & contrast

On white

10.40
#472897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#472897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #472897
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##472897#FFFFFF#000000##FFFFFF
##4728971.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003D95
Tritanopia (blue-blind)
#29465D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #472897;
/* rgb */ color: rgb(71, 40, 151);
/* oklch */ color: oklch(38.9% 0.169 288.8);
Tailwind
colors: {
  custom: {
    50: '#8365b7',
    500: '#472897',
    950: '#000000',
  },
}
SCSS
$custom: #472897;
$custom-light: #8365b7;
$custom-dark: #000000;
JSON
{
  "hex": "#472897",
  "rgb": {
    "r": 71,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 256.757,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38924,
    "c": 0.16905,
    "h": 288.8
  },
  "luminance": 0.05092
}

Semantic roles & 50–950 ramp

primary
#472897
secondary
#A2BC5F
accent
#E146B6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #472897

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

Preview Lab → · Contrast checker → · Palette generator →

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