#47227E#47227E

#47227E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.146 H 296.7°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#47227E
RGBrgb(71, 34, 126)
HSLhsl(264, 58%, 31%)
HSVhsv(264, 73%, 49%)
CMYKcmyk(43.7%, 73%, 0%, 50.6%)
CIE-LABlab(23.64, 38.08, -45.61)
CIE-LCHlch(23.64, 59.42, 309.86°)
OKLaboklab(35.86% 0.0656 -0.1304)
OKLCHoklch(35.86% 0.146 296.7)
XYZxyz(6.9355, 3.9899, 20.1393)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47227E #597E22
analogous
#222B7E #47227E #75227E
triadic
#47227E #7E4722 #227E47
tetradic
#47227E #7E222B #597E22 #227E75
square
#47227E #7E222B #597E22 #227E75
split-complementary
#47227E #7E7522 #2B7E22
monochromatic
#11081E #2C154E #47227E #622FAE #804CCF

Accessibility & contrast

On white

11.68
#47227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#47227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #47227E
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47227E#FFFFFF#000000##FFFFFF
##47227E1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#39394D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #47227e;
/* rgb */ color: rgb(71, 34, 126);
/* oklch */ color: oklch(35.9% 0.146 296.7);
Tailwind
colors: {
  custom: {
    50: '#8060a4',
    500: '#47227e',
    950: '#000000',
  },
}
SCSS
$custom: #47227e;
$custom-light: #8060a4;
$custom-dark: #000000;
JSON
{
  "hex": "#47227e",
  "rgb": {
    "r": 71,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 264.13,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35858,
    "c": 0.14597,
    "h": 296.7
  },
  "luminance": 0.0399
}

Semantic roles & 50–950 ramp

primary
#47227E
secondary
#88B14B
accent
#E147A3
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #47227E

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

Preview Lab → · Contrast checker → · Palette generator →

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