#47197B#47197B

#47197B is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.153 H 299.4°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#47197B
RGBrgb(71, 25, 123)
HSLhsl(268, 66%, 29%)
HSVhsv(268, 80%, 48%)
CMYKcmyk(42.3%, 79.7%, 0%, 51.8%)
CIE-LABlab(21.82, 41.68, -46.68)
CIE-LCHlch(21.82, 62.58, 311.76°)
OKLaboklab(34.49% 0.0751 -0.1335)
OKLCHoklch(34.49% 0.153 299.4)
XYZxyz(6.5204, 3.4648, 19.0603)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47197B #4D7B19
analogous
#191C7B #47197B #78197B
triadic
#47197B #7B4719 #197B47
tetradic
#47197B #7B191C #4D7B19 #197B78
square
#47197B #7B191C #4D7B19 #197B78
split-complementary
#47197B #7B7819 #1C7B19
monochromatic
#0F0519 #2A0F48 #47197B #6423AE #8238D7

Accessibility & contrast

On white

12.40
#47197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#47197B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #47197B
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47197B#FFFFFF#000000##FFFFFF
##47197B1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003379
Tritanopia (blue-blind)
#3A3349
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #47197b;
/* rgb */ color: rgb(71, 25, 123);
/* oklch */ color: oklch(34.5% 0.153 299.4);
Tailwind
colors: {
  custom: {
    50: '#805ba2',
    500: '#47197b',
    950: '#000000',
  },
}
SCSS
$custom: #47197b;
$custom-light: #805ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#47197b",
  "rgb": {
    "r": 71,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 268.163,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3449,
    "c": 0.15316,
    "h": 299.4
  },
  "luminance": 0.03465
}

Semantic roles & 50–950 ramp

primary
#47197B
secondary
#7BAF40
accent
#E93F99
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #47197B

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

Preview Lab → · Contrast checker → · Palette generator →

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