#47157C#47157C

#47157C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.158 H 299.6°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#47157C
RGBrgb(71, 21, 124)
HSLhsl(269, 71%, 28%)
HSVhsv(269, 83%, 49%)
CMYKcmyk(42.7%, 83.1%, 0%, 51.4%)
CIE-LABlab(21.32, 43.63, -48.12)
CIE-LCHlch(21.32, 64.96, 312.20°)
OKLaboklab(34.17% 0.0782 -0.1377)
OKLCHoklch(34.17% 0.158 299.6)
XYZxyz(6.5039, 3.3311, 19.3652)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47157C #4A7C15
analogous
#15177C #47157C #7A157C
triadic
#47157C #7C4715 #157C47
tetradic
#47157C #7C1517 #4A7C15 #157C7A
square
#47157C #7C1517 #4A7C15 #157C7A
split-complementary
#47157C #7C7A15 #177C15
monochromatic
#0F041A #290C48 #47157C #651EB0 #8330DC

Accessibility & contrast

On white

12.60
#47157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #47157C
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47157C#FFFFFF#000000##FFFFFF
##47157C1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#3A3249
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #47157c;
/* rgb */ color: rgb(71, 21, 124);
/* oklch */ color: oklch(34.2% 0.158 299.6);
Tailwind
colors: {
  custom: {
    50: '#805aa3',
    500: '#47157c',
    950: '#000000',
  },
}
SCSS
$custom: #47157c;
$custom-light: #805aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#47157c",
  "rgb": {
    "r": 71,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 269.126,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34175,
    "c": 0.15832,
    "h": 299.6
  },
  "luminance": 0.03331
}

Semantic roles & 50–950 ramp

primary
#47157C
secondary
#78B13C
accent
#EE3A97
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #47157C

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

Preview Lab → · Contrast checker → · Palette generator →

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