#572797#572797

#572797 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.171 H 297.8°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#572797
RGBrgb(87, 39, 151)
HSLhsl(266, 59%, 37%)
HSVhsv(266, 74%, 59%)
CMYKcmyk(42.4%, 74.2%, 0%, 40.8%)
CIE-LABlab(28.67, 45.37, -52.88)
CIE-LCHlch(28.67, 69.67, 310.63°)
OKLaboklab(40.54% 0.0796 -0.1512)
OKLCHoklch(40.54% 0.171 297.8)
XYZxyz(10.2405, 5.7115, 29.8350)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#572797 #679727
analogous
#272F97 #572797 #8F2797
triadic
#572797 #975727 #279757
tetradic
#572797 #97272F #679727 #27978F
square
#572797 #97272F #679727 #27978F
split-complementary
#572797 #978F27 #2F9727
monochromatic
#1F0E36 #3B1A66 #572797 #7334C8 #9462D6

Accessibility & contrast

On white

9.80
#572797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#572797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #572797
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##572797#FFFFFF#000000##FFFFFF
##5727971.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #572797;
/* rgb */ color: rgb(87, 39, 151);
/* oklch */ color: oklch(40.5% 0.171 297.8);
Tailwind
colors: {
  custom: {
    50: '#8c66b6',
    500: '#572797',
    950: '#000000',
  },
}
SCSS
$custom: #572797;
$custom-light: #8c66b6;
$custom-dark: #000000;
JSON
{
  "hex": "#572797",
  "rgb": {
    "r": 87,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 265.714,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40539,
    "c": 0.17086,
    "h": 297.8
  },
  "luminance": 0.05712
}

Semantic roles & 50–950 ramp

primary
#572797
secondary
#94BC5E
accent
#E2469F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #572797

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

Preview Lab → · Contrast checker → · Palette generator →

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