#47187C#47187C

#47187C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.155 H 299.2°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#47187C
RGBrgb(71, 24, 124)
HSLhsl(268, 68%, 29%)
HSVhsv(268, 81%, 49%)
CMYKcmyk(42.7%, 80.6%, 0%, 51.4%)
CIE-LABlab(21.76, 42.38, -47.42)
CIE-LCHlch(21.76, 63.60, 311.79°)
OKLaboklab(34.48% 0.0757 -0.1356)
OKLCHoklch(34.48% 0.155 299.2)
XYZxyz(6.5623, 3.4480, 19.3847)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47187C #4D7C18
analogous
#181B7C #47187C #79187C
triadic
#47187C #7C4718 #187C47
tetradic
#47187C #7C181B #4D7C18 #187C79
square
#47187C #7C181B #4D7C18 #187C79
split-complementary
#47187C #7C7918 #1B7C18
monochromatic
#0F051A #2A0E49 #47187C #6422AF #8236D8

Accessibility & contrast

On white

12.43
#47187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #47187C
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47187C#FFFFFF#000000##FFFFFF
##47187C1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00337A
Tritanopia (blue-blind)
#3A334A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #47187c;
/* rgb */ color: rgb(71, 24, 124);
/* oklch */ color: oklch(34.5% 0.155 299.2);
Tailwind
colors: {
  custom: {
    50: '#805ba3',
    500: '#47187c',
    950: '#000000',
  },
}
SCSS
$custom: #47187c;
$custom-light: #805ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#47187c",
  "rgb": {
    "r": 71,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 268.2,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34476,
    "c": 0.15532,
    "h": 299.2
  },
  "luminance": 0.03448
}

Semantic roles & 50–950 ramp

primary
#47187C
secondary
#7BB13F
accent
#EA3D99
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #47187C

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

Preview Lab → · Contrast checker → · Palette generator →

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