#47217F#47217F

#47217F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.148 H 296.6°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#47217F
RGBrgb(71, 33, 127)
HSLhsl(264, 59%, 31%)
HSVhsv(264, 74%, 50%)
CMYKcmyk(44.1%, 74%, 0%, 50.2%)
CIE-LABlab(23.54, 38.89, -46.41)
CIE-LCHlch(23.54, 60.55, 309.96°)
OKLaboklab(35.81% 0.0664 -0.1327)
OKLCHoklch(35.81% 0.148 296.6)
XYZxyz(6.9721, 3.9595, 20.4715)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47217F #597F21
analogous
#212A7F #47217F #76217F
triadic
#47217F #7F4721 #217F47
tetradic
#47217F #7F212A #597F21 #217F76
square
#47217F #7F212A #597F21 #217F76
split-complementary
#47217F #7F7621 #2A7F21
monochromatic
#11081E #2C144E #47217F #622EB0 #804AD0

Accessibility & contrast

On white

11.72
#47217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#47217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #47217F
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47217F#FFFFFF#000000##FFFFFF
##47217F1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#38394E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #47217f;
/* rgb */ color: rgb(71, 33, 127);
/* oklch */ color: oklch(35.8% 0.148 296.6);
Tailwind
colors: {
  custom: {
    50: '#8060a5',
    500: '#47217f',
    950: '#000000',
  },
}
SCSS
$custom: #47217f;
$custom-light: #8060a5;
$custom-dark: #000000;
JSON
{
  "hex": "#47217f",
  "rgb": {
    "r": 71,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 264.255,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35813,
    "c": 0.14843,
    "h": 296.6
  },
  "luminance": 0.0396
}

Semantic roles & 50–950 ramp

primary
#47217F
secondary
#88B24A
accent
#E246A3
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #47217F

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

Preview Lab → · Contrast checker → · Palette generator →

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