#472173#472173

#472173 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.8% C 0.134 H 300.8°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#472173
RGBrgb(71, 33, 115)
HSLhsl(268, 55%, 29%)
HSVhsv(268, 71%, 45%)
CMYKcmyk(38.3%, 71.3%, 0%, 54.9%)
CIE-LABlab(22.53, 35.58, -40.40)
CIE-LCHlch(22.53, 53.83, 311.37°)
OKLaboklab(34.78% 0.0687 -0.1151)
OKLCHoklch(34.78% 0.134 300.8)
XYZxyz(6.2361, 3.6651, 16.5952)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#472173 #4D7321
analogous
#212473 #472173 #702173
triadic
#472173 #734721 #217347
tetradic
#472173 #732124 #4D7321 #217370
square
#472173 #732124 #4D7321 #217370
split-complementary
#472173 #737021 #247321
monochromatic
#0F0718 #2A1343 #472173 #642FA3 #8245CA

Accessibility & contrast

On white

12.12
#472173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#472173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #472173
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##472173#FFFFFF#000000##FFFFFF
##4721731.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003575
Deuteranopia (green-blind)
#003571
Tritanopia (blue-blind)
#3D3447
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #472173;
/* rgb */ color: rgb(71, 33, 115);
/* oklch */ color: oklch(34.8% 0.134 300.8);
Tailwind
colors: {
  custom: {
    50: '#7e5f9c',
    500: '#472173',
    950: '#000000',
  },
}
SCSS
$custom: #472173;
$custom-light: #7e5f9c;
$custom-dark: #000000;
JSON
{
  "hex": "#472173",
  "rgb": {
    "r": 71,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 267.805,
    "s": 55.405,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34782,
    "c": 0.13399,
    "h": 300.8
  },
  "luminance": 0.03665
}

Semantic roles & 50–950 ramp

primary
#472173
secondary
#7BA649
accent
#DF4999
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #472173

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

Preview Lab → · Contrast checker → · Palette generator →

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