#47157B#47157B

#47157B is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.157 H 300.0°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#47157B
RGBrgb(71, 21, 123)
HSLhsl(269, 71%, 28%)
HSVhsv(269, 83%, 48%)
CMYKcmyk(42.3%, 82.9%, 0%, 51.8%)
CIE-LABlab(21.23, 43.38, -47.64)
CIE-LCHlch(21.23, 64.43, 312.32°)
OKLaboklab(34.08% 0.0785 -0.1362)
OKLCHoklch(34.08% 0.157 300)
XYZxyz(6.4409, 3.3059, 19.0338)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47157B #497B15
analogous
#15167B #47157B #7A157B
triadic
#47157B #7B4715 #157B47
tetradic
#47157B #7B1516 #497B15 #157B7A
square
#47157B #7B1516 #497B15 #157B7A
split-complementary
#47157B #7B7A15 #167B15
monochromatic
#0F041A #290C47 #47157B #651EAF #842FDB

Accessibility & contrast

On white

12.64
#47157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#47157B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #47157B
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47157B#FFFFFF#000000##FFFFFF
##47157B1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#003279
Tritanopia (blue-blind)
#3B3148
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #47157b;
/* rgb */ color: rgb(71, 21, 123);
/* oklch */ color: oklch(34.1% 0.157 300.0);
Tailwind
colors: {
  custom: {
    50: '#805aa2',
    500: '#47157b',
    950: '#000000',
  },
}
SCSS
$custom: #47157b;
$custom-light: #805aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#47157b",
  "rgb": {
    "r": 71,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 269.412,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34081,
    "c": 0.15726,
    "h": 300
  },
  "luminance": 0.03306
}

Semantic roles & 50–950 ramp

primary
#47157B
secondary
#77B03B
accent
#EE3A96
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #47157B

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

Preview Lab → · Contrast checker → · Palette generator →

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