#472797#472797

#472797 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.170 H 289.0°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#472797
RGBrgb(71, 39, 151)
HSLhsl(257, 59%, 37%)
HSVhsv(257, 74%, 59%)
CMYKcmyk(53%, 74.2%, 0%, 40.8%)
CIE-LABlab(26.80, 42.62, -56.01)
CIE-LCHlch(26.80, 70.38, 307.27°)
OKLaboklab(38.79% 0.0553 -0.1609)
OKLCHoklch(38.79% 0.17 289)
XYZxyz(8.9083, 5.0246, 29.7726)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#472797 #779727
analogous
#273F97 #472797 #7F2797
triadic
#472797 #974727 #279747
tetradic
#472797 #97273F #779727 #27977F
square
#472797 #97273F #779727 #27977F
split-complementary
#472797 #977F27 #3F9727
monochromatic
#190E36 #301A66 #472797 #5E34C8 #8362D6

Accessibility & contrast

On white

10.47
#472797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#472797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #472797
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##472797#FFFFFF#000000##FFFFFF
##4727971.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003D95
Tritanopia (blue-blind)
#29455D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #472797;
/* rgb */ color: rgb(71, 39, 151);
/* oklch */ color: oklch(38.8% 0.170 289.0);
Tailwind
colors: {
  custom: {
    50: '#8364b7',
    500: '#472797',
    950: '#000000',
  },
}
SCSS
$custom: #472797;
$custom-light: #8364b7;
$custom-dark: #000000;
JSON
{
  "hex": "#472797",
  "rgb": {
    "r": 71,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 257.143,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38791,
    "c": 0.17019,
    "h": 289
  },
  "luminance": 0.05025
}

Semantic roles & 50–950 ramp

primary
#472797
secondary
#A1BC5E
accent
#E246B5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #472797

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

Preview Lab → · Contrast checker → · Palette generator →

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