#47229E#47229E

#47229E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.184 H 288.2°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#47229E
RGBrgb(71, 34, 158)
HSLhsl(258, 65%, 38%)
HSVhsv(258, 78%, 62%)
CMYKcmyk(55.1%, 78.5%, 0%, 38%)
CIE-LABlab(26.60, 47.13, -60.63)
CIE-LCHlch(26.60, 76.79, 307.85°)
OKLaboklab(38.85% 0.0574 -0.1744)
OKLCHoklch(38.85% 0.184 288.2)
XYZxyz(9.3403, 4.9518, 32.8048)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47229E #799E22
analogous
#223B9E #47229E #85229E
triadic
#47229E #9E4722 #229E47
tetradic
#47229E #9E223B #799E22 #229E85
square
#47229E #9E223B #799E22 #229E85
split-complementary
#47229E #9E8522 #3B9E22
monochromatic
#1A0C39 #30176C #47229E #5E2DD0 #845EDC

Accessibility & contrast

On white

10.55
#47229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#47229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #47229E
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47229E#FFFFFF#000000##FFFFFF
##47229E1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#003C9C
Tritanopia (blue-blind)
#23465F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #47229e;
/* rgb */ color: rgb(71, 34, 158);
/* oklch */ color: oklch(38.8% 0.184 288.2);
Tailwind
colors: {
  custom: {
    50: '#8462bc',
    500: '#47229e',
    950: '#000000',
  },
}
SCSS
$custom: #47229e;
$custom-light: #8462bc;
$custom-dark: #000000;
JSON
{
  "hex": "#47229e",
  "rgb": {
    "r": 71,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 257.903,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38849,
    "c": 0.18364,
    "h": 288.2
  },
  "luminance": 0.04952
}

Semantic roles & 50–950 ramp

primary
#47229E
secondary
#A3C15B
accent
#E840B6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #47229E

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

Preview Lab → · Contrast checker → · Palette generator →

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