#47227D#47227D

#47227D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.145 H 297.0°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#47227D
RGBrgb(71, 34, 125)
HSLhsl(264, 57%, 31%)
HSVhsv(264, 73%, 49%)
CMYKcmyk(43.2%, 72.8%, 0%, 51%)
CIE-LABlab(23.55, 37.80, -45.12)
CIE-LCHlch(23.55, 58.86, 309.96°)
OKLaboklab(35.77% 0.0658 -0.1289)
OKLCHoklch(35.77% 0.145 297)
XYZxyz(6.8713, 3.9642, 19.8012)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47227D #587D22
analogous
#222A7D #47227D #74227D
triadic
#47227D #7D4722 #227D47
tetradic
#47227D #7D222A #587D22 #227D74
square
#47227D #7D222A #587D22 #227D74
split-complementary
#47227D #7D7422 #2A7D22
monochromatic
#10081D #2C154D #47227D #622FAD #804BCE

Accessibility & contrast

On white

11.71
#47227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#47227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #47227D
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47227D#FFFFFF#000000##FFFFFF
##47227D1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#39384D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #47227d;
/* rgb */ color: rgb(71, 34, 125);
/* oklch */ color: oklch(35.8% 0.145 297.0);
Tailwind
colors: {
  custom: {
    50: '#7f60a3',
    500: '#47227d',
    950: '#000000',
  },
}
SCSS
$custom: #47227d;
$custom-light: #7f60a3;
$custom-dark: #000000;
JSON
{
  "hex": "#47227d",
  "rgb": {
    "r": 71,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 264.396,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35771,
    "c": 0.14476,
    "h": 297
  },
  "luminance": 0.03964
}

Semantic roles & 50–950 ramp

primary
#47227D
secondary
#87B04B
accent
#E047A2
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #47227D

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

Preview Lab → · Contrast checker → · Palette generator →

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