#47217B#47217B

#47217B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.144 H 297.9°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#47217B
RGBrgb(71, 33, 123)
HSLhsl(265, 58%, 31%)
HSVhsv(265, 73%, 48%)
CMYKcmyk(42.3%, 73.2%, 0%, 51.8%)
CIE-LABlab(23.19, 37.78, -44.43)
CIE-LCHlch(23.19, 58.32, 310.37°)
OKLaboklab(35.46% 0.0673 -0.1269)
OKLCHoklch(35.46% 0.144 297.9)
XYZxyz(6.7166, 3.8573, 19.1257)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47217B #557B21
analogous
#21287B #47217B #74217B
triadic
#47217B #7B4721 #217B47
tetradic
#47217B #7B2128 #557B21 #217B74
square
#47217B #7B2128 #557B21 #217B74
split-complementary
#47217B #7B7421 #287B21
monochromatic
#0F071A #2B144B #47217B #632EAB #8148CE

Accessibility & contrast

On white

11.86
#47217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#47217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #47217B
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47217B#FFFFFF#000000##FFFFFF
##47217B1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#3A374B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #47217b;
/* rgb */ color: rgb(71, 33, 123);
/* oklch */ color: oklch(35.5% 0.144 297.9);
Tailwind
colors: {
  custom: {
    50: '#7f60a2',
    500: '#47217b',
    950: '#000000',
  },
}
SCSS
$custom: #47217b;
$custom-light: #7f60a2;
$custom-dark: #000000;
JSON
{
  "hex": "#47217b",
  "rgb": {
    "r": 71,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 265.333,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35462,
    "c": 0.14364,
    "h": 297.9
  },
  "luminance": 0.03857
}

Semantic roles & 50–950 ramp

primary
#47217B
secondary
#84AE4A
accent
#E147A0
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #47217B

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

Preview Lab → · Contrast checker → · Palette generator →

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