#47157D#47157D

#47157D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.159 H 299.2°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#47157D
RGBrgb(71, 21, 125)
HSLhsl(269, 71%, 29%)
HSVhsv(269, 83%, 49%)
CMYKcmyk(43.2%, 83.2%, 0%, 51%)
CIE-LABlab(21.42, 43.89, -48.60)
CIE-LCHlch(21.42, 65.49, 312.08°)
OKLaboklab(34.27% 0.0779 -0.1391)
OKLCHoklch(34.27% 0.159 299.2)
XYZxyz(6.5674, 3.3565, 19.6999)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47157D #4B7D15
analogous
#15177D #47157D #7B157D
triadic
#47157D #7D4715 #157D47
tetradic
#47157D #7D1517 #4B7D15 #157D7B
square
#47157D #7D1517 #4B7D15 #157D7B
split-complementary
#47157D #7D7B15 #177D15
monochromatic
#0F041A #290C49 #47157D #651EB1 #8330DC

Accessibility & contrast

On white

12.56
#47157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#47157D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #47157D
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47157D#FFFFFF#000000##FFFFFF
##47157D1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#3A324A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #47157d;
/* rgb */ color: rgb(71, 21, 125);
/* oklch */ color: oklch(34.3% 0.159 299.2);
Tailwind
colors: {
  custom: {
    50: '#805aa4',
    500: '#47157d',
    950: '#000000',
  },
}
SCSS
$custom: #47157d;
$custom-light: #805aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#47157d",
  "rgb": {
    "r": 71,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 268.846,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3427,
    "c": 0.15939,
    "h": 299.2
  },
  "luminance": 0.03357
}

Semantic roles & 50–950 ramp

primary
#47157D
secondary
#79B23C
accent
#EE3A97
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #47157D

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

Preview Lab → · Contrast checker → · Palette generator →

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