#472170#472170

#472170 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.5% C 0.130 H 302.0°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#472170
RGBrgb(71, 33, 112)
HSLhsl(269, 54%, 28%)
HSVhsv(269, 71%, 44%)
CMYKcmyk(36.6%, 70.5%, 0%, 56.1%)
CIE-LABlab(22.29, 34.76, -38.86)
CIE-LCHlch(22.29, 52.14, 311.82°)
OKLaboklab(34.53% 0.0691 -0.1105)
OKLCHoklch(34.53% 0.13 302)
XYZxyz(6.0663, 3.5971, 15.7008)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#472170 #4A7021
analogous
#212270 #472170 #6E2170
triadic
#472170 #704721 #217047
tetradic
#472170 #702122 #4A7021 #21706E
square
#472170 #702122 #4A7021 #21706E
split-complementary
#472170 #706E21 #227021
monochromatic
#0F0718 #291341 #472170 #652F9F #8344C8

Accessibility & contrast

On white

12.21
#472170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#472170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #472170
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##472170#FFFFFF#000000##FFFFFF
##4721701.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003572
Deuteranopia (green-blind)
#00356E
Tritanopia (blue-blind)
#3F3345
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #472170;
/* rgb */ color: rgb(71, 33, 112);
/* oklch */ color: oklch(34.5% 0.130 302.0);
Tailwind
colors: {
  custom: {
    50: '#7e5f9a',
    500: '#472170',
    950: '#000000',
  },
}
SCSS
$custom: #472170;
$custom-light: #7e5f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#472170",
  "rgb": {
    "r": 71,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 268.861,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34535,
    "c": 0.13035,
    "h": 302
  },
  "luminance": 0.03597
}

Semantic roles & 50–950 ramp

primary
#472170
secondary
#78A449
accent
#DE4A97
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #472170

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

Preview Lab → · Contrast checker → · Palette generator →

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