#47197F#47197F

#47197F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.158 H 298.0°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#47197F
RGBrgb(71, 25, 127)
HSLhsl(267, 67%, 30%)
HSVhsv(267, 80%, 50%)
CMYKcmyk(44.1%, 80.3%, 0%, 50.2%)
CIE-LABlab(22.18, 42.73, -48.62)
CIE-LCHlch(22.18, 64.73, 311.31°)
OKLaboklab(34.86% 0.074 -0.1392)
OKLCHoklch(34.86% 0.158 298)
XYZxyz(6.7759, 3.5670, 20.4061)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47197F #517F19
analogous
#191E7F #47197F #7A197F
triadic
#47197F #7F4719 #197F47
tetradic
#47197F #7F191E #517F19 #197F7A
square
#47197F #7F191E #517F19 #197F7A
split-complementary
#47197F #7F7A19 #1E7F19
monochromatic
#0E051A #2A0F4C #47197F #6423B2 #813AD8

Accessibility & contrast

On white

12.26
#47197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#47197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #47197F
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47197F#FFFFFF#000000##FFFFFF
##47197F1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #47197f;
/* rgb */ color: rgb(71, 25, 127);
/* oklch */ color: oklch(34.9% 0.158 298.0);
Tailwind
colors: {
  custom: {
    50: '#805ca5',
    500: '#47197f',
    950: '#000000',
  },
}
SCSS
$custom: #47197f;
$custom-light: #805ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#47197f",
  "rgb": {
    "r": 71,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 267.059,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34861,
    "c": 0.15759,
    "h": 298
  },
  "luminance": 0.03567
}

Semantic roles & 50–950 ramp

primary
#47197F
secondary
#80B341
accent
#EA3E9C
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #47197F

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

Preview Lab → · Contrast checker → · Palette generator →

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