#572795#572795

#572795 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.169 H 298.3°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#572795
RGBrgb(87, 39, 149)
HSLhsl(266, 59%, 37%)
HSVhsv(266, 74%, 58%)
CMYKcmyk(41.6%, 73.8%, 0%, 41.6%)
CIE-LABlab(28.50, 44.84, -51.93)
CIE-LCHlch(28.50, 68.61, 310.81°)
OKLaboklab(40.37% 0.08 -0.1484)
OKLCHoklch(40.37% 0.169 298.3)
XYZxyz(10.0794, 5.6470, 28.9869)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#572795 #659527
analogous
#272E95 #572795 #8E2795
triadic
#572795 #955727 #279557
tetradic
#572795 #95272E #659527 #27958E
square
#572795 #95272E #659527 #27958E
split-complementary
#572795 #958E27 #2E9527
monochromatic
#1E0E34 #3B1A64 #572795 #7334C6 #9461D6

Accessibility & contrast

On white

9.86
#572795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#572795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #572795
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##572795#FFFFFF#000000##FFFFFF
##5727951.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004398
Deuteranopia (green-blind)
#004293
Tritanopia (blue-blind)
#48435B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #572795;
/* rgb */ color: rgb(87, 39, 149);
/* oklch */ color: oklch(40.4% 0.169 298.3);
Tailwind
colors: {
  custom: {
    50: '#8c66b5',
    500: '#572795',
    950: '#000000',
  },
}
SCSS
$custom: #572795;
$custom-light: #8c66b5;
$custom-dark: #000000;
JSON
{
  "hex": "#572795",
  "rgb": {
    "r": 87,
    "g": 39,
    "b": 149
  },
  "hsl": {
    "h": 266.182,
    "s": 58.511,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40367,
    "c": 0.1686,
    "h": 298.3
  },
  "luminance": 0.05647
}

Semantic roles & 50–950 ramp

primary
#572795
secondary
#92BB5D
accent
#E2469E
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #572795

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

Preview Lab → · Contrast checker → · Palette generator →

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