#47157E#47157E

#47157E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.160 H 298.9°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#47157E
RGBrgb(71, 21, 126)
HSLhsl(269, 71%, 29%)
HSVhsv(269, 83%, 49%)
CMYKcmyk(43.7%, 83.3%, 0%, 50.6%)
CIE-LABlab(21.51, 44.14, -49.08)
CIE-LCHlch(21.51, 66.01, 311.97°)
OKLaboklab(34.37% 0.0775 -0.1405)
OKLCHoklch(34.37% 0.16 298.9)
XYZxyz(6.6316, 3.3822, 20.0381)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47157E #4C7E15
analogous
#15187E #47157E #7C157E
triadic
#47157E #7E4715 #157E47
tetradic
#47157E #7E1518 #4C7E15 #157E7C
square
#47157E #7E1518 #4C7E15 #157E7C
split-complementary
#47157E #7E7C15 #187E15
monochromatic
#0F041A #290C4A #47157E #651EB2 #8331DD

Accessibility & contrast

On white

12.53
#47157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#47157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #47157E
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47157E#FFFFFF#000000##FFFFFF
##47157E1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#39334A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #47157e;
/* rgb */ color: rgb(71, 21, 126);
/* oklch */ color: oklch(34.4% 0.160 298.9);
Tailwind
colors: {
  custom: {
    50: '#815aa4',
    500: '#47157e',
    950: '#000000',
  },
}
SCSS
$custom: #47157e;
$custom-light: #815aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#47157e",
  "rgb": {
    "r": 71,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 268.571,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34365,
    "c": 0.16046,
    "h": 298.9
  },
  "luminance": 0.03382
}

Semantic roles & 50–950 ramp

primary
#47157E
secondary
#7AB33C
accent
#EE3A98
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #47157E

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

Preview Lab → · Contrast checker → · Palette generator →

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