#472158#472158

#472158 is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.7% C 0.101 H 314.1°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#472158
RGBrgb(71, 33, 88)
HSLhsl(281, 45%, 24%)
HSVhsv(281, 63%, 35%)
CMYKcmyk(19.3%, 62.5%, 0%, 65.5%)
CIE-LABlab(20.57, 28.53, -25.90)
CIE-LCHlch(20.57, 38.53, 317.76°)
OKLaboklab(32.73% 0.0703 -0.0725)
OKLCHoklch(32.73% 0.101 314.1)
XYZxyz(4.9036, 3.1320, 9.5769)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#472158 #325821
analogous
#2B2158 #472158 #58214D
triadic
#472158 #584721 #215847
tetradic
#472158 #582B21 #325821 #214D58
square
#472158 #582B21 #325821 #214D58
split-complementary
#472158 #4D5821 #21582B
monochromatic
#120816 #23102B #472158 #6B3285 #8F42B1

Accessibility & contrast

On white

12.91
#472158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#472158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #472158
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##472158#FFFFFF#000000##FFFFFF
##4721581.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112F5A
Deuteranopia (green-blind)
#1F3357
Tritanopia (blue-blind)
#462A39
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #472158;
/* rgb */ color: rgb(71, 33, 88);
/* oklch */ color: oklch(32.7% 0.101 314.1);
Tailwind
colors: {
  custom: {
    50: '#7c5e87',
    500: '#472158',
    950: '#000000',
  },
}
SCSS
$custom: #472158;
$custom-light: #7c5e87;
$custom-dark: #000000;
JSON
{
  "hex": "#472158",
  "rgb": {
    "r": 71,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 281.455,
    "s": 45.455,
    "l": 23.725
  },
  "oklch": {
    "l": 0.32734,
    "c": 0.10102,
    "h": 314.1
  },
  "luminance": 0.03132
}

Semantic roles & 50–950 ramp

primary
#472158
secondary
#5D8C49
accent
#D5537B
background
#F7F5F8
surface
#EEE9EF
border
#C9C5CA
text
#0A040B
muted
#7C797C

Preview Lab

Preview with #472158

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

Preview Lab → · Contrast checker → · Palette generator →

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