#47187F#47187F

#47187F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.159 H 298.1°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#47187F
RGBrgb(71, 24, 127)
HSLhsl(267, 68%, 30%)
HSVhsv(267, 81%, 50%)
CMYKcmyk(44.1%, 81.1%, 0%, 50.2%)
CIE-LABlab(22.03, 43.16, -48.86)
CIE-LCHlch(22.03, 65.20, 311.46°)
OKLaboklab(34.76% 0.0748 -0.1399)
OKLCHoklch(34.76% 0.159 298.1)
XYZxyz(6.7549, 3.5251, 20.3991)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47187F #507F18
analogous
#181C7F #47187F #7B187F
triadic
#47187F #7F4718 #187F47
tetradic
#47187F #7F181C #507F18 #187F7B
square
#47187F #7F181C #507F18 #187F7B
split-complementary
#47187F #7F7B18 #1C7F18
monochromatic
#0E051A #2A0E4C #47187F #6422B2 #8238D9

Accessibility & contrast

On white

12.32
#47187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #47187F
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47187F#FFFFFF#000000##FFFFFF
##47187F1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#39344B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #47187f;
/* rgb */ color: rgb(71, 24, 127);
/* oklch */ color: oklch(34.8% 0.159 298.1);
Tailwind
colors: {
  custom: {
    50: '#805ba5',
    500: '#47187f',
    950: '#000000',
  },
}
SCSS
$custom: #47187f;
$custom-light: #805ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#47187f",
  "rgb": {
    "r": 71,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 267.379,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34756,
    "c": 0.15861,
    "h": 298.1
  },
  "luminance": 0.03525
}

Semantic roles & 50–950 ramp

primary
#47187F
secondary
#7EB33F
accent
#EB3D9C
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #47187F

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

Preview Lab → · Contrast checker → · Palette generator →

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