#47187E#47187E

#47187E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.158 H 298.5°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#47187E
RGBrgb(71, 24, 126)
HSLhsl(268, 68%, 29%)
HSVhsv(268, 81%, 49%)
CMYKcmyk(43.7%, 81%, 0%, 50.6%)
CIE-LABlab(21.94, 42.90, -48.38)
CIE-LCHlch(21.94, 64.67, 311.57°)
OKLaboklab(34.66% 0.0751 -0.1385)
OKLCHoklch(34.66% 0.158 298.5)
XYZxyz(6.6901, 3.4991, 20.0575)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47187E #4F7E18
analogous
#181C7E #47187E #7A187E
triadic
#47187E #7E4718 #187E47
tetradic
#47187E #7E181C #4F7E18 #187E7A
square
#47187E #7E181C #4F7E18 #187E7A
split-complementary
#47187E #7E7A18 #1C7E18
monochromatic
#0E051A #2A0E4B #47187E #6422B1 #8237D9

Accessibility & contrast

On white

12.35
#47187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#47187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #47187E
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47187E#FFFFFF#000000##FFFFFF
##47187E1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#39344B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #47187e;
/* rgb */ color: rgb(71, 24, 126);
/* oklch */ color: oklch(34.7% 0.158 298.5);
Tailwind
colors: {
  custom: {
    50: '#805ba4',
    500: '#47187e',
    950: '#000000',
  },
}
SCSS
$custom: #47187e;
$custom-light: #805ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#47187e",
  "rgb": {
    "r": 71,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 267.647,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34663,
    "c": 0.15752,
    "h": 298.5
  },
  "luminance": 0.03499
}

Semantic roles & 50–950 ramp

primary
#47187E
secondary
#7DB23F
accent
#EB3D9B
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #47187E

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

Preview Lab → · Contrast checker → · Palette generator →

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