#47197D#47197D

#47197D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.155 H 298.7°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#47197D
RGBrgb(71, 25, 125)
HSLhsl(268, 67%, 29%)
HSVhsv(268, 80%, 49%)
CMYKcmyk(43.2%, 80%, 0%, 51%)
CIE-LABlab(22.00, 42.21, -47.65)
CIE-LCHlch(22.00, 63.66, 311.53°)
OKLaboklab(34.67% 0.0746 -0.1363)
OKLCHoklch(34.67% 0.155 298.7)
XYZxyz(6.6469, 3.5154, 19.7264)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47197D #4F7D19
analogous
#191D7D #47197D #79197D
triadic
#47197D #7D4719 #197D47
tetradic
#47197D #7D191D #4F7D19 #197D79
square
#47197D #7D191D #4F7D19 #197D79
split-complementary
#47197D #7D7919 #1D7D19
monochromatic
#0E051A #2A0F4A #47197D #6423B0 #8239D7

Accessibility & contrast

On white

12.33
#47197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#47197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #47197D
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47197D#FFFFFF#000000##FFFFFF
##47197D1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#3A344A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #47197d;
/* rgb */ color: rgb(71, 25, 125);
/* oklch */ color: oklch(34.7% 0.155 298.7);
Tailwind
colors: {
  custom: {
    50: '#805ba4',
    500: '#47197d',
    950: '#000000',
  },
}
SCSS
$custom: #47197d;
$custom-light: #805ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#47197d",
  "rgb": {
    "r": 71,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 267.6,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34675,
    "c": 0.15537,
    "h": 298.7
  },
  "luminance": 0.03516
}

Semantic roles & 50–950 ramp

primary
#47197D
secondary
#7DB140
accent
#EA3E9B
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #47197D

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

Preview Lab → · Contrast checker → · Palette generator →

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