#472187#472187

#472187 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.158 H 294.1°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#472187
RGBrgb(71, 33, 135)
HSLhsl(262, 61%, 33%)
HSVhsv(262, 76%, 53%)
CMYKcmyk(47.4%, 75.6%, 0%, 47.1%)
CIE-LABlab(24.25, 41.12, -50.28)
CIE-LCHlch(24.25, 64.96, 309.28°)
OKLaboklab(36.53% 0.0646 -0.1441)
OKLCHoklch(36.53% 0.158 294.1)
XYZxyz(7.5144, 4.1764, 23.3272)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#472187 #618721
analogous
#212E87 #472187 #7A2187
triadic
#472187 #874721 #218747
tetradic
#472187 #87212E #618721 #21877A
square
#472187 #87212E #618721 #21877A
split-complementary
#472187 #877A21 #2E8721
monochromatic
#130925 #2D1556 #472187 #612DB8 #804FD4

Accessibility & contrast

On white

11.44
#472187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#472187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #472187
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##472187#FFFFFF#000000##FFFFFF
##4721871.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003885
Tritanopia (blue-blind)
#343C52
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #472187;
/* rgb */ color: rgb(71, 33, 135);
/* oklch */ color: oklch(36.5% 0.158 294.1);
Tailwind
colors: {
  custom: {
    50: '#8160ab',
    500: '#472187',
    950: '#000000',
  },
}
SCSS
$custom: #472187;
$custom-light: #8160ab;
$custom-dark: #000000;
JSON
{
  "hex": "#472187",
  "rgb": {
    "r": 71,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 262.353,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36534,
    "c": 0.15792,
    "h": 294.1
  },
  "luminance": 0.04177
}

Semantic roles & 50–950 ramp

primary
#472187
secondary
#8FB74D
accent
#E444A8
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #472187

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

Preview Lab → · Contrast checker → · Palette generator →

#472187 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva