#47218A#47218A

#47218A is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.161 H 293.3°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#47218A
RGBrgb(71, 33, 138)
HSLhsl(262, 61%, 34%)
HSVhsv(262, 76%, 54%)
CMYKcmyk(48.6%, 76.1%, 0%, 45.9%)
CIE-LABlab(24.52, 41.96, -51.71)
CIE-LCHlch(24.52, 66.60, 309.06°)
OKLaboklab(36.81% 0.0638 -0.1483)
OKLCHoklch(36.81% 0.161 293.3)
XYZxyz(7.7286, 4.2620, 24.4553)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47218A #648A21
analogous
#212F8A #47218A #7B218A
triadic
#47218A #8A4721 #218A47
tetradic
#47218A #8A212F #648A21 #218A7B
square
#47218A #8A212F #648A21 #218A7B
split-complementary
#47218A #8A7B21 #2F8A21
monochromatic
#140927 #2E1559 #47218A #602DBB #8050D5

Accessibility & contrast

On white

11.34
#47218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#47218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #47218A
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47218A#FFFFFF#000000##FFFFFF
##47218A1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003888
Tritanopia (blue-blind)
#333D54
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #47218a;
/* rgb */ color: rgb(71, 33, 138);
/* oklch */ color: oklch(36.8% 0.161 293.3);
Tailwind
colors: {
  custom: {
    50: '#8160ad',
    500: '#47218a',
    950: '#000000',
  },
}
SCSS
$custom: #47218a;
$custom-light: #8160ad;
$custom-dark: #000000;
JSON
{
  "hex": "#47218a",
  "rgb": {
    "r": 71,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 261.714,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36811,
    "c": 0.16146,
    "h": 293.3
  },
  "luminance": 0.04262
}

Semantic roles & 50–950 ramp

primary
#47218A
secondary
#92B94E
accent
#E543AA
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #47218A

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

Preview Lab → · Contrast checker → · Palette generator →

#47218A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva