#47227C#47227C

#47227C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.144 H 297.4°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#47227C
RGBrgb(71, 34, 124)
HSLhsl(265, 57%, 31%)
HSVhsv(265, 73%, 49%)
CMYKcmyk(42.7%, 72.6%, 0%, 51.4%)
CIE-LABlab(23.47, 37.53, -44.62)
CIE-LCHlch(23.47, 58.30, 310.06°)
OKLaboklab(35.68% 0.066 -0.1275)
OKLCHoklch(35.68% 0.144 297.4)
XYZxyz(6.8077, 3.9388, 19.4665)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47227C #577C22
analogous
#222A7C #47227C #74227C
triadic
#47227C #7C4722 #227C47
tetradic
#47227C #7C222A #577C22 #227C74
square
#47227C #7C222A #577C22 #227C74
split-complementary
#47227C #7C7422 #2A7C22
monochromatic
#10081C #2B154C #47227C #632FAC #814BCE

Accessibility & contrast

On white

11.75
#47227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #47227C
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47227C#FFFFFF#000000##FFFFFF
##47227C1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#3A384C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #47227c;
/* rgb */ color: rgb(71, 34, 124);
/* oklch */ color: oklch(35.7% 0.144 297.4);
Tailwind
colors: {
  custom: {
    50: '#7f60a3',
    500: '#47227c',
    950: '#000000',
  },
}
SCSS
$custom: #47227c;
$custom-light: #7f60a3;
$custom-dark: #000000;
JSON
{
  "hex": "#47227c",
  "rgb": {
    "r": 71,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 264.667,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35684,
    "c": 0.14355,
    "h": 297.4
  },
  "luminance": 0.03939
}

Semantic roles & 50–950 ramp

primary
#47227C
secondary
#86AF4B
accent
#E048A1
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #47227C

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

Preview Lab → · Contrast checker → · Palette generator →

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