#47217D#47217D

#47217D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.146 H 297.2°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#47217D
RGBrgb(71, 33, 125)
HSLhsl(265, 58%, 31%)
HSVhsv(265, 74%, 49%)
CMYKcmyk(43.2%, 73.6%, 0%, 51%)
CIE-LABlab(23.36, 38.33, -45.42)
CIE-LCHlch(23.36, 59.44, 310.16°)
OKLaboklab(35.64% 0.0669 -0.1298)
OKLCHoklch(35.64% 0.146 297.2)
XYZxyz(6.8431, 3.9078, 19.7918)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47217D #577D21
analogous
#21297D #47217D #75217D
triadic
#47217D #7D4721 #217D47
tetradic
#47217D #7D2129 #577D21 #217D75
square
#47217D #7D2129 #577D21 #217D75
split-complementary
#47217D #7D7521 #297D21
monochromatic
#10071C #2B144D #47217D #632EAD #8149CF

Accessibility & contrast

On white

11.79
#47217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#47217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #47217D
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47217D#FFFFFF#000000##FFFFFF
##47217D1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#39384C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #47217d;
/* rgb */ color: rgb(71, 33, 125);
/* oklch */ color: oklch(35.6% 0.146 297.2);
Tailwind
colors: {
  custom: {
    50: '#8060a3',
    500: '#47217d',
    950: '#000000',
  },
}
SCSS
$custom: #47217d;
$custom-light: #8060a3;
$custom-dark: #000000;
JSON
{
  "hex": "#47217d",
  "rgb": {
    "r": 71,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 264.783,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35637,
    "c": 0.14603,
    "h": 297.2
  },
  "luminance": 0.03908
}

Semantic roles & 50–950 ramp

primary
#47217D
secondary
#86B04A
accent
#E146A1
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #47217D

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

Preview Lab → · Contrast checker → · Palette generator →

#47217D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva