#47186D#47186D

#47186D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.139 H 305.0°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#47186D
RGBrgb(71, 24, 109)
HSLhsl(273, 64%, 26%)
HSVhsv(273, 78%, 43%)
CMYKcmyk(34.9%, 78%, 0%, 57.3%)
CIE-LABlab(20.43, 38.52, -39.94)
CIE-LCHlch(20.43, 55.49, 313.96°)
OKLaboklab(33.13% 0.0797 -0.1137)
OKLCHoklch(33.13% 0.139 305)
XYZxyz(5.6849, 3.0970, 14.7633)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47186D #3E6D18
analogous
#1C186D #47186D #6D1868
triadic
#47186D #6D4718 #186D47
tetradic
#47186D #6D1C18 #3E6D18 #18686D
square
#47186D #6D1C18 #3E6D18 #18686D
split-complementary
#47186D #686D18 #186D1C
monochromatic
#100619 #260D3B #47186D #68239F #882ED1

Accessibility & contrast

On white

12.97
#47186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#47186D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #47186D
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47186D#FFFFFF#000000##FFFFFF
##47186D1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306F
Deuteranopia (green-blind)
#00316B
Tritanopia (blue-blind)
#402D41
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #47186d;
/* rgb */ color: rgb(71, 24, 109);
/* oklch */ color: oklch(33.1% 0.139 305.0);
Tailwind
colors: {
  custom: {
    50: '#7e5a97',
    500: '#47186d',
    950: '#000000',
  },
}
SCSS
$custom: #47186d;
$custom-light: #7e5a97;
$custom-dark: #000000;
JSON
{
  "hex": "#47186d",
  "rgb": {
    "r": 71,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 273.176,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.33132,
    "c": 0.1388,
    "h": 305
  },
  "luminance": 0.03097
}

Semantic roles & 50–950 ramp

primary
#47186D
secondary
#6BA33E
accent
#E7418B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #47186D

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

Preview Lab → · Contrast checker → · Palette generator →

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