#572897#572897

#572897 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.170 H 297.6°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#572897
RGBrgb(87, 40, 151)
HSLhsl(265, 58%, 37%)
HSVhsv(265, 74%, 59%)
CMYKcmyk(42.4%, 73.5%, 0%, 40.8%)
CIE-LABlab(28.85, 44.88, -52.60)
CIE-LCHlch(28.85, 69.14, 310.47°)
OKLaboklab(40.66% 0.0786 -0.1504)
OKLCHoklch(40.66% 0.17 297.6)
XYZxyz(10.2737, 5.7780, 29.8461)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#572897 #689728
analogous
#283197 #572897 #8E2897
triadic
#572897 #975728 #289757
tetradic
#572897 #972831 #689728 #28978E
square
#572897 #972831 #689728 #28978E
split-complementary
#572897 #978E28 #319728
monochromatic
#1F0E36 #3B1B67 #572897 #7335C7 #9464D6

Accessibility & contrast

On white

9.74
#572897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#572897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #572897
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##572897#FFFFFF#000000##FFFFFF
##5728971.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#47445D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #572897;
/* rgb */ color: rgb(87, 40, 151);
/* oklch */ color: oklch(40.7% 0.170 297.6);
Tailwind
colors: {
  custom: {
    50: '#8c66b6',
    500: '#572897',
    950: '#000000',
  },
}
SCSS
$custom: #572897;
$custom-light: #8c66b6;
$custom-dark: #000000;
JSON
{
  "hex": "#572897",
  "rgb": {
    "r": 87,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 265.405,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40661,
    "c": 0.16968,
    "h": 297.6
  },
  "luminance": 0.05778
}

Semantic roles & 50–950 ramp

primary
#572897
secondary
#94BC5F
accent
#E146A0
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #572897

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

Preview Lab → · Contrast checker → · Palette generator →

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