#47226C#47226C

#47226C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.4% C 0.124 H 303.4°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#47226C
RGBrgb(71, 34, 108)
HSLhsl(270, 52%, 28%)
HSVhsv(270, 69%, 42%)
CMYKcmyk(34.3%, 68.5%, 0%, 57.6%)
CIE-LABlab(22.18, 33.13, -36.45)
CIE-LCHlch(22.18, 49.26, 312.27°)
OKLaboklab(34.36% 0.0683 -0.1035)
OKLCHoklch(34.36% 0.124 303.4)
XYZxyz(5.8767, 3.5664, 14.5632)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47226C #476C22
analogous
#22226C #47226C #6C226C
triadic
#47226C #6C4722 #226C47
tetradic
#47226C #6C2222 #476C22 #226C6C
square
#47226C #6C2222 #476C22 #226C6C
split-complementary
#47226C #6C6C22 #226C22
monochromatic
#0F0717 #28133D #47226C #66319B #8444C4

Accessibility & contrast

On white

12.26
#47226C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#47226C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #47226C
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47226C#FFFFFF#000000##FFFFFF
##47226C1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346E
Deuteranopia (green-blind)
#09356A
Tritanopia (blue-blind)
#403243
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #47226c;
/* rgb */ color: rgb(71, 34, 108);
/* oklch */ color: oklch(34.4% 0.124 303.4);
Tailwind
colors: {
  custom: {
    50: '#7e6097',
    500: '#47226c',
    950: '#000000',
  },
}
SCSS
$custom: #47226c;
$custom-light: #7e6097;
$custom-dark: #000000;
JSON
{
  "hex": "#47226c",
  "rgb": {
    "r": 71,
    "g": 34,
    "b": 108
  },
  "hsl": {
    "h": 270,
    "s": 52.113,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34359,
    "c": 0.12399,
    "h": 303.4
  },
  "luminance": 0.03566
}

Semantic roles & 50–950 ramp

primary
#47226C
secondary
#75A04A
accent
#DC4C94
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050D
muted
#7C797E

Preview Lab

Preview with #47226C

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

Preview Lab → · Contrast checker → · Palette generator →

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