#47158D#47158D

#47158D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.176 H 294.1°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#47158D
RGBrgb(71, 21, 141)
HSLhsl(265, 74%, 32%)
HSVhsv(265, 85%, 55%)
CMYKcmyk(49.6%, 85.1%, 0%, 44.7%)
CIE-LABlab(22.99, 48.02, -56.08)
CIE-LCHlch(22.99, 73.83, 310.57°)
OKLaboklab(35.84% 0.0722 -0.161)
OKLCHoklch(35.84% 0.176 294.1)
XYZxyz(7.6731, 3.7988, 25.5231)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47158D #5B8D15
analogous
#151F8D #47158D #83158D
triadic
#47158D #8D4715 #158D47
tetradic
#47158D #8D151F #5B8D15 #158D83
square
#47158D #8D151F #5B8D15 #158D83
split-complementary
#47158D #8D8315 #1F8D15
monochromatic
#110522 #2C0D58 #47158D #621DC2 #803BE2

Accessibility & contrast

On white

11.93
#47158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#47158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #47158D
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47158D#FFFFFF#000000##FFFFFF
##47158D1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#313953
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #47158d;
/* rgb */ color: rgb(71, 21, 141);
/* oklch */ color: oklch(35.8% 0.176 294.1);
Tailwind
colors: {
  custom: {
    50: '#835baf',
    500: '#47158d',
    950: '#000000',
  },
}
SCSS
$custom: #47158d;
$custom-light: #835baf;
$custom-dark: #000000;
JSON
{
  "hex": "#47158d",
  "rgb": {
    "r": 71,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 265,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35838,
    "c": 0.17643,
    "h": 294.1
  },
  "luminance": 0.03799
}

Semantic roles & 50–950 ramp

primary
#47158D
secondary
#8AC13D
accent
#F137A3
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #47158D

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

Preview Lab → · Contrast checker → · Palette generator →

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