#47168D#47168D

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

Color values

HEX#47168D
RGBrgb(71, 22, 141)
HSLhsl(265, 73%, 32%)
HSVhsv(265, 84%, 55%)
CMYKcmyk(49.6%, 84.4%, 0%, 44.7%)
CIE-LABlab(23.12, 47.64, -55.87)
CIE-LCHlch(23.12, 73.43, 310.45°)
OKLaboklab(35.93% 0.0715 -0.1604)
OKLCHoklch(35.93% 0.176 294)
XYZxyz(7.6918, 3.8363, 25.5293)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47168D #5C8D16
analogous
#16218D #47168D #83168D
triadic
#47168D #8D4716 #168D47
tetradic
#47168D #8D1621 #5C8D16 #168D83
square
#47168D #8D1621 #5C8D16 #168D83
split-complementary
#47168D #8D8316 #218D16
monochromatic
#120523 #2C0E58 #47168D #621EC2 #803DE1

Accessibility & contrast

On white

11.88
#47168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#47168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #47168D
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47168D#FFFFFF#000000##FFFFFF
##47168D1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #47168d;
/* rgb */ color: rgb(71, 22, 141);
/* oklch */ color: oklch(35.9% 0.176 294.0);
Tailwind
colors: {
  custom: {
    50: '#835baf',
    500: '#47168d',
    950: '#000000',
  },
}
SCSS
$custom: #47168d;
$custom-light: #835baf;
$custom-dark: #000000;
JSON
{
  "hex": "#47168d",
  "rgb": {
    "r": 71,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 264.706,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35926,
    "c": 0.17561,
    "h": 294
  },
  "luminance": 0.03836
}

Semantic roles & 50–950 ramp

primary
#47168D
secondary
#8BC13E
accent
#F038A4
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #47168D

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

Preview Lab → · Contrast checker → · Palette generator →

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