#472198#472198

#472198 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.178 H 289.7°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#472198
RGBrgb(71, 33, 152)
HSLhsl(259, 64%, 36%)
HSVhsv(259, 78%, 60%)
CMYKcmyk(53.3%, 78.3%, 0%, 40.4%)
CIE-LABlab(25.84, 45.90, -58.20)
CIE-LCHlch(25.84, 74.12, 308.26°)
OKLaboklab(38.15% 0.0599 -0.1673)
OKLCHoklch(38.15% 0.178 289.7)
XYZxyz(8.8082, 4.6939, 30.1416)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#472198 #729821
analogous
#213798 #472198 #832198
triadic
#472198 #984721 #219847
tetradic
#472198 #982137 #729821 #219883
square
#472198 #982137 #729821 #219883
split-complementary
#472198 #988321 #379821
monochromatic
#180B33 #301666 #472198 #5E2CCA #8259DB

Accessibility & contrast

On white

10.83
#472198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#472198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #472198
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##472198#FFFFFF#000000##FFFFFF
##4721981.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003A96
Tritanopia (blue-blind)
#29435C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #472198;
/* rgb */ color: rgb(71, 33, 152);
/* oklch */ color: oklch(38.1% 0.178 289.7);
Tailwind
colors: {
  custom: {
    50: '#8361b7',
    500: '#472198',
    950: '#000000',
  },
}
SCSS
$custom: #472198;
$custom-light: #8361b7;
$custom-dark: #000000;
JSON
{
  "hex": "#472198",
  "rgb": {
    "r": 71,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 259.16,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38145,
    "c": 0.17773,
    "h": 289.7
  },
  "luminance": 0.04694
}

Semantic roles & 50–950 ramp

primary
#472198
secondary
#9DBF56
accent
#E740B2
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #472198

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

Preview Lab → · Contrast checker → · Palette generator →

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