#47187D#47187D

#47187D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.156 H 298.8°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#47187D
RGBrgb(71, 24, 125)
HSLhsl(268, 68%, 29%)
HSVhsv(268, 81%, 49%)
CMYKcmyk(43.2%, 80.8%, 0%, 51%)
CIE-LABlab(21.85, 42.64, -47.90)
CIE-LCHlch(21.85, 64.13, 311.68°)
OKLaboklab(34.57% 0.0754 -0.137)
OKLCHoklch(34.57% 0.156 298.8)
XYZxyz(6.6259, 3.4734, 19.7194)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47187D #4E7D18
analogous
#181C7D #47187D #7A187D
triadic
#47187D #7D4718 #187D47
tetradic
#47187D #7D181C #4E7D18 #187D7A
square
#47187D #7D181C #4E7D18 #187D7A
split-complementary
#47187D #7D7A18 #1C7D18
monochromatic
#0F051A #2A0E4A #47187D #6422B0 #8237D9

Accessibility & contrast

On white

12.39
#47187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#47187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #47187D
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47187D#FFFFFF#000000##FFFFFF
##47187D1.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#3A344A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #47187d;
/* rgb */ color: rgb(71, 24, 125);
/* oklch */ color: oklch(34.6% 0.156 298.8);
Tailwind
colors: {
  custom: {
    50: '#805ba4',
    500: '#47187d',
    950: '#000000',
  },
}
SCSS
$custom: #47187d;
$custom-light: #805ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#47187d",
  "rgb": {
    "r": 71,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 267.921,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34569,
    "c": 0.15642,
    "h": 298.8
  },
  "luminance": 0.03474
}

Semantic roles & 50–950 ramp

primary
#47187D
secondary
#7CB23F
accent
#EB3D9A
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #47187D

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

Preview Lab → · Contrast checker → · Palette generator →

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