#47228C#47228C

#47228C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.163 H 292.6°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#47228C
RGBrgb(71, 34, 140)
HSLhsl(261, 61%, 34%)
HSVhsv(261, 76%, 55%)
CMYKcmyk(49.3%, 75.7%, 0%, 45.1%)
CIE-LABlab(24.88, 42.03, -52.37)
CIE-LCHlch(24.88, 67.15, 308.75°)
OKLaboklab(37.12% 0.0624 -0.1502)
OKLCHoklch(37.12% 0.163 292.6)
XYZxyz(7.9029, 4.3768, 25.2343)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47228C #678C22
analogous
#22328C #47228C #7C228C
triadic
#47228C #8C4722 #228C47
tetradic
#47228C #8C2232 #678C22 #228C7C
square
#47228C #8C2232 #678C22 #228C7C
split-complementary
#47228C #8C7C22 #328C22
monochromatic
#150A2A #2E165B #47228C #602EBD #8153D5

Accessibility & contrast

On white

11.20
#47228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#47228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #47228C
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47228C#FFFFFF#000000##FFFFFF
##47228C1.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#313E55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #47228c;
/* rgb */ color: rgb(71, 34, 140);
/* oklch */ color: oklch(37.1% 0.163 292.6);
Tailwind
colors: {
  custom: {
    50: '#8261af',
    500: '#47228c',
    950: '#000000',
  },
}
SCSS
$custom: #47228c;
$custom-light: #8261af;
$custom-dark: #000000;
JSON
{
  "hex": "#47228c",
  "rgb": {
    "r": 71,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 260.943,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37122,
    "c": 0.16268,
    "h": 292.6
  },
  "luminance": 0.04377
}

Semantic roles & 50–950 ramp

primary
#47228C
secondary
#95B951
accent
#E444AC
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #47228C

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

Preview Lab → · Contrast checker → · Palette generator →

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