#472197#472197

#472197 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.177 H 289.9°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#472197
RGBrgb(71, 33, 151)
HSLhsl(259, 64%, 36%)
HSVhsv(259, 78%, 59%)
CMYKcmyk(53%, 78.1%, 0%, 40.8%)
CIE-LABlab(25.75, 45.62, -57.75)
CIE-LCHlch(25.75, 73.59, 308.31°)
OKLaboklab(38.05% 0.0602 -0.166)
OKLCHoklch(38.05% 0.177 289.9)
XYZxyz(8.7267, 4.6613, 29.7121)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#472197 #719721
analogous
#213697 #472197 #822197
triadic
#472197 #974721 #219747
tetradic
#472197 #972136 #719721 #219782
square
#472197 #972136 #719721 #219782
split-complementary
#472197 #978221 #369721
monochromatic
#180B33 #2F1665 #472197 #5F2CC9 #8258DA

Accessibility & contrast

On white

10.87
#472197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#472197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #472197
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##472197#FFFFFF#000000##FFFFFF
##4721971.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003A95
Tritanopia (blue-blind)
#29425B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #472197;
/* rgb */ color: rgb(71, 33, 151);
/* oklch */ color: oklch(38.0% 0.177 289.9);
Tailwind
colors: {
  custom: {
    50: '#8361b7',
    500: '#472197',
    950: '#000000',
  },
}
SCSS
$custom: #472197;
$custom-light: #8361b7;
$custom-dark: #000000;
JSON
{
  "hex": "#472197",
  "rgb": {
    "r": 71,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 259.322,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38048,
    "c": 0.17657,
    "h": 289.9
  },
  "luminance": 0.04662
}

Semantic roles & 50–950 ramp

primary
#472197
secondary
#9DBE55
accent
#E741B2
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #472197

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

Preview Lab → · Contrast checker → · Palette generator →

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