#472698#472698

#472698 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.172 H 288.9°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#472698
RGBrgb(71, 38, 152)
HSLhsl(257, 60%, 37%)
HSVhsv(257, 75%, 60%)
CMYKcmyk(53.3%, 75%, 0%, 40.4%)
CIE-LABlab(26.71, 43.43, -56.77)
CIE-LCHlch(26.71, 71.48, 307.41°)
OKLaboklab(38.76% 0.0559 -0.1632)
OKLCHoklch(38.76% 0.173 288.9)
XYZxyz(8.9575, 4.9924, 30.1913)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#472698 #779826
analogous
#263E98 #472698 #802698
triadic
#472698 #984726 #269847
tetradic
#472698 #98263E #779826 #269880
square
#472698 #98263E #779826 #269880
split-complementary
#472698 #988026 #3E9826
monochromatic
#190E36 #301A67 #472698 #5E32C9 #8361D7

Accessibility & contrast

On white

10.51
#472698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#472698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #472698
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##472698#FFFFFF#000000##FFFFFF
##4726981.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003C96
Tritanopia (blue-blind)
#28455D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #472698;
/* rgb */ color: rgb(71, 38, 152);
/* oklch */ color: oklch(38.8% 0.172 288.9);
Tailwind
colors: {
  custom: {
    50: '#8364b7',
    500: '#472698',
    950: '#000000',
  },
}
SCSS
$custom: #472698;
$custom-light: #8364b7;
$custom-dark: #000000;
JSON
{
  "hex": "#472698",
  "rgb": {
    "r": 71,
    "g": 38,
    "b": 152
  },
  "hsl": {
    "h": 257.368,
    "s": 60,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38755,
    "c": 0.1725,
    "h": 288.9
  },
  "luminance": 0.04993
}

Semantic roles & 50–950 ramp

primary
#472698
secondary
#A1BD5D
accent
#E345B5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #472698

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

Preview Lab → · Contrast checker → · Palette generator →

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