#472157#472157

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

Color values

HEX#472157
RGBrgb(71, 33, 87)
HSLhsl(282, 45%, 24%)
HSVhsv(282, 62%, 34%)
CMYKcmyk(18.4%, 62.1%, 0%, 65.9%)
CIE-LABlab(20.50, 28.28, -25.34)
CIE-LCHlch(20.50, 37.97, 318.14°)
OKLaboklab(32.67% 0.0703 -0.0709)
OKLCHoklch(32.67% 0.1 314.8)
XYZxyz(4.8624, 3.1156, 9.3602)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#472157 #315721
analogous
#2C2157 #472157 #57214C
triadic
#472157 #574721 #215747
tetradic
#472157 #572C21 #315721 #214C57
square
#472157 #572C21 #315721 #214C57
split-complementary
#472157 #4C5721 #21572C
monochromatic
#120816 #23102B #472157 #6B3283 #8F43B0

Accessibility & contrast

On white

12.94
#472157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#472157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #472157
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##472157#FFFFFF#000000##FFFFFF
##4721571.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122F59
Deuteranopia (green-blind)
#203256
Tritanopia (blue-blind)
#462A38
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #472157;
/* rgb */ color: rgb(71, 33, 87);
/* oklch */ color: oklch(32.7% 0.100 314.8);
Tailwind
colors: {
  custom: {
    50: '#7c5e87',
    500: '#472157',
    950: '#000000',
  },
}
SCSS
$custom: #472157;
$custom-light: #7c5e87;
$custom-dark: #000000;
JSON
{
  "hex": "#472157",
  "rgb": {
    "r": 71,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 282.222,
    "s": 45,
    "l": 23.529
  },
  "oklch": {
    "l": 0.32666,
    "c": 0.09981,
    "h": 314.8
  },
  "luminance": 0.03115
}

Semantic roles & 50–950 ramp

primary
#472157
secondary
#5C8B49
accent
#D5537A
background
#F7F5F8
surface
#EEE9EF
border
#C9C5CA
text
#0A040B
muted
#7C797C

Preview Lab

Preview with #472157

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

Preview Lab → · Contrast checker → · Palette generator →

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