#572498#572498

#572498 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.175 H 297.9°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#572498
RGBrgb(87, 36, 152)
HSLhsl(266, 62%, 37%)
HSVhsv(266, 76%, 60%)
CMYKcmyk(42.8%, 76.3%, 0%, 40.4%)
CIE-LABlab(28.26, 47.04, -54.17)
CIE-LCHlch(28.26, 71.74, 310.97°)
OKLaboklab(40.28% 0.0822 -0.1549)
OKLCHoklch(40.28% 0.175 297.9)
XYZxyz(10.2274, 5.5548, 30.2330)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#572498 #659824
analogous
#242B98 #572498 #912498
triadic
#572498 #985724 #249857
tetradic
#572498 #98242B #659824 #249891
square
#572498 #98242B #659824 #249891
split-complementary
#572498 #989124 #2B9824
monochromatic
#1E0D35 #3B1867 #572498 #7330C9 #945ED9

Accessibility & contrast

On white

9.95
#572498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#572498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #572498
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##572498#FFFFFF#000000##FFFFFF
##5724981.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#004196
Tritanopia (blue-blind)
#47425C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #572498;
/* rgb */ color: rgb(87, 36, 152);
/* oklch */ color: oklch(40.3% 0.175 297.9);
Tailwind
colors: {
  custom: {
    50: '#8d64b7',
    500: '#572498',
    950: '#000000',
  },
}
SCSS
$custom: #572498;
$custom-light: #8d64b7;
$custom-dark: #000000;
JSON
{
  "hex": "#572498",
  "rgb": {
    "r": 87,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 266.379,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40275,
    "c": 0.17538,
    "h": 297.9
  },
  "luminance": 0.05555
}

Semantic roles & 50–950 ramp

primary
#572498
secondary
#92BE5A
accent
#E5439E
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #572498

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

Preview Lab → · Contrast checker → · Palette generator →

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