#47229D#47229D

#47229D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.182 H 288.4°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#47229D
RGBrgb(71, 34, 157)
HSLhsl(258, 64%, 37%)
HSVhsv(258, 78%, 62%)
CMYKcmyk(54.8%, 78.3%, 0%, 38.4%)
CIE-LABlab(26.50, 46.84, -60.19)
CIE-LCHlch(26.50, 76.27, 307.89°)
OKLaboklab(38.75% 0.0577 -0.1731)
OKLCHoklch(38.75% 0.183 288.4)
XYZxyz(9.2546, 4.9175, 32.3533)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47229D #789D22
analogous
#223A9D #47229D #85229D
triadic
#47229D #9D4722 #229D47
tetradic
#47229D #9D223A #789D22 #229D85
square
#47229D #9D223A #789D22 #229D85
split-complementary
#47229D #9D8522 #3A9D22
monochromatic
#1A0C38 #30176B #47229D #5E2DCF #835DDC

Accessibility & contrast

On white

10.59
#47229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#47229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #47229D
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47229D#FFFFFF#000000##FFFFFF
##47229D1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A0
Deuteranopia (green-blind)
#003B9B
Tritanopia (blue-blind)
#24455F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #47229d;
/* rgb */ color: rgb(71, 34, 157);
/* oklch */ color: oklch(38.8% 0.182 288.4);
Tailwind
colors: {
  custom: {
    50: '#8462bb',
    500: '#47229d',
    950: '#000000',
  },
}
SCSS
$custom: #47229d;
$custom-light: #8462bb;
$custom-dark: #000000;
JSON
{
  "hex": "#47229d",
  "rgb": {
    "r": 71,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 258.049,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.3875,
    "c": 0.1825,
    "h": 288.4
  },
  "luminance": 0.04918
}

Semantic roles & 50–950 ramp

primary
#47229D
secondary
#A2C15A
accent
#E740B5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #47229D

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

Preview Lab → · Contrast checker → · Palette generator →

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