#47228B#47228B

#47228B is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.162 H 292.8°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#47228B
RGBrgb(71, 34, 139)
HSLhsl(261, 61%, 34%)
HSVhsv(261, 76%, 55%)
CMYKcmyk(48.9%, 75.5%, 0%, 45.5%)
CIE-LABlab(24.79, 41.74, -51.89)
CIE-LCHlch(24.79, 66.60, 308.81°)
OKLaboklab(37.03% 0.0627 -0.1488)
OKLCHoklch(37.03% 0.162 292.8)
XYZxyz(7.8295, 4.3475, 24.8477)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47228B #668B22
analogous
#22328B #47228B #7C228B
triadic
#47228B #8B4722 #228B47
tetradic
#47228B #8B2232 #668B22 #228B7C
square
#47228B #8B2232 #668B22 #228B7C
split-complementary
#47228B #8B7C22 #328B22
monochromatic
#150A29 #2E165A #47228B #602EBC #8053D5

Accessibility & contrast

On white

11.23
#47228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#47228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #47228B
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47228B#FFFFFF#000000##FFFFFF
##47228B1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#323E55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #47228b;
/* rgb */ color: rgb(71, 34, 139);
/* oklch */ color: oklch(37.0% 0.162 292.8);
Tailwind
colors: {
  custom: {
    50: '#8161ae',
    500: '#47228b',
    950: '#000000',
  },
}
SCSS
$custom: #47228b;
$custom-light: #8161ae;
$custom-dark: #000000;
JSON
{
  "hex": "#47228b",
  "rgb": {
    "r": 71,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 261.143,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37029,
    "c": 0.1615,
    "h": 292.8
  },
  "luminance": 0.04348
}

Semantic roles & 50–950 ramp

primary
#47228B
secondary
#94B850
accent
#E444AB
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #47228B

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

Preview Lab → · Contrast checker → · Palette generator →

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