#47227F#47227F

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

Color values

HEX#47227F
RGBrgb(71, 34, 127)
HSLhsl(264, 58%, 32%)
HSVhsv(264, 73%, 50%)
CMYKcmyk(44.1%, 73.2%, 0%, 50.2%)
CIE-LABlab(23.72, 38.36, -46.10)
CIE-LCHlch(23.72, 59.98, 309.76°)
OKLaboklab(35.95% 0.0654 -0.1318)
OKLCHoklch(35.95% 0.147 296.4)
XYZxyz(7.0003, 4.0158, 20.4809)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47227F #5A7F22
analogous
#222C7F #47227F #76227F
triadic
#47227F #7F4722 #227F47
tetradic
#47227F #7F222C #5A7F22 #227F76
square
#47227F #7F222C #5A7F22 #227F76
split-complementary
#47227F #7F7622 #2C7F22
monochromatic
#11081E #2C154F #47227F #622FAF #804CCF

Accessibility & contrast

On white

11.65
#47227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #47227F
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47227F#FFFFFF#000000##FFFFFF
##47227F1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#38394E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #47227f;
/* rgb */ color: rgb(71, 34, 127);
/* oklch */ color: oklch(35.9% 0.147 296.4);
Tailwind
colors: {
  custom: {
    50: '#8060a5',
    500: '#47227f',
    950: '#000000',
  },
}
SCSS
$custom: #47227f;
$custom-light: #8060a5;
$custom-dark: #000000;
JSON
{
  "hex": "#47227f",
  "rgb": {
    "r": 71,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 263.871,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.35946,
    "c": 0.14717,
    "h": 296.4
  },
  "luminance": 0.04016
}

Semantic roles & 50–950 ramp

primary
#47227F
secondary
#89B24B
accent
#E147A4
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #47227F

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

Preview Lab → · Contrast checker → · Palette generator →

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