#47187B#47187B

#47187B is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.154 H 299.5°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#47187B
RGBrgb(71, 24, 123)
HSLhsl(268, 67%, 29%)
HSVhsv(268, 80%, 48%)
CMYKcmyk(42.3%, 80.5%, 0%, 51.8%)
CIE-LABlab(21.66, 42.12, -46.93)
CIE-LCHlch(21.66, 63.06, 311.91°)
OKLaboklab(34.38% 0.076 -0.1342)
OKLCHoklch(34.38% 0.154 299.5)
XYZxyz(6.4994, 3.4228, 19.0533)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47187B #4C7B18
analogous
#181B7B #47187B #79187B
triadic
#47187B #7B4718 #187B47
tetradic
#47187B #7B181B #4C7B18 #187B79
square
#47187B #7B181B #4C7B18 #187B79
split-complementary
#47187B #7B7918 #1B7B18
monochromatic
#0F051A #290E48 #47187B #6522AE #8336D8

Accessibility & contrast

On white

12.47
#47187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#47187B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #47187B
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47187B#FFFFFF#000000##FFFFFF
##47187B1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003379
Tritanopia (blue-blind)
#3A3349
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #47187b;
/* rgb */ color: rgb(71, 24, 123);
/* oklch */ color: oklch(34.4% 0.154 299.5);
Tailwind
colors: {
  custom: {
    50: '#805ba2',
    500: '#47187b',
    950: '#000000',
  },
}
SCSS
$custom: #47187b;
$custom-light: #805ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#47187b",
  "rgb": {
    "r": 71,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 268.485,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34383,
    "c": 0.15422,
    "h": 299.5
  },
  "luminance": 0.03423
}

Semantic roles & 50–950 ramp

primary
#47187B
secondary
#7AB03F
accent
#EA3E98
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #47187B

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

Preview Lab → · Contrast checker → · Palette generator →

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