#472498#472498

#472498 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.175 H 289.2°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#472498
RGBrgb(71, 36, 152)
HSLhsl(258, 62%, 37%)
HSVhsv(258, 76%, 60%)
CMYKcmyk(53.3%, 76.3%, 0%, 40.4%)
CIE-LABlab(26.36, 44.44, -57.36)
CIE-LCHlch(26.36, 72.57, 307.77°)
OKLaboklab(38.5% 0.0576 -0.1649)
OKLCHoklch(38.5% 0.175 289.2)
XYZxyz(8.8953, 4.8679, 30.1706)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#472498 #759824
analogous
#243B98 #472498 #812498
triadic
#472498 #984724 #249847
tetradic
#472498 #98243B #759824 #249881
square
#472498 #98243B #759824 #249881
split-complementary
#472498 #988124 #3B9824
monochromatic
#190D35 #301867 #472498 #5E30C9 #835ED9

Accessibility & contrast

On white

10.64
#472498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#472498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #472498
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##472498#FFFFFF#000000##FFFFFF
##4724981.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003B96
Tritanopia (blue-blind)
#28445C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #472498;
/* rgb */ color: rgb(71, 36, 152);
/* oklch */ color: oklch(38.5% 0.175 289.2);
Tailwind
colors: {
  custom: {
    50: '#8363b7',
    500: '#472498',
    950: '#000000',
  },
}
SCSS
$custom: #472498;
$custom-light: #8363b7;
$custom-dark: #000000;
JSON
{
  "hex": "#472498",
  "rgb": {
    "r": 71,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 258.103,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.38503,
    "c": 0.17464,
    "h": 289.2
  },
  "luminance": 0.04868
}

Semantic roles & 50–950 ramp

primary
#472498
secondary
#A0BE5A
accent
#E543B4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #472498

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

Preview Lab → · Contrast checker → · Palette generator →

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