#572098#572098

#572098 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.180 H 298.5°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#572098
RGBrgb(87, 32, 152)
HSLhsl(268, 65%, 36%)
HSVhsv(268, 79%, 60%)
CMYKcmyk(42.8%, 78.9%, 0%, 40.4%)
CIE-LABlab(27.64, 48.81, -55.17)
CIE-LCHlch(27.64, 73.66, 311.50°)
OKLaboklab(39.84% 0.0856 -0.1579)
OKLCHoklch(39.84% 0.18 298.5)
XYZxyz(10.1130, 5.3261, 30.1949)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#572098 #619820
analogous
#202598 #572098 #932098
triadic
#572098 #985720 #209857
tetradic
#572098 #982025 #619820 #209893
square
#572098 #982025 #619820 #209893
split-complementary
#572098 #989320 #259820
monochromatic
#1D0B33 #3A1565 #572098 #742BCB #9457DC

Accessibility & contrast

On white

10.17
#572098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#572098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #572098
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##572098#FFFFFF#000000##FFFFFF
##5720981.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#47415C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #572098;
/* rgb */ color: rgb(87, 32, 152);
/* oklch */ color: oklch(39.8% 0.180 298.5);
Tailwind
colors: {
  custom: {
    50: '#8d62b7',
    500: '#572098',
    950: '#000000',
  },
}
SCSS
$custom: #572098;
$custom-light: #8d62b7;
$custom-dark: #000000;
JSON
{
  "hex": "#572098",
  "rgb": {
    "r": 87,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 267.5,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39843,
    "c": 0.1796,
    "h": 298.5
  },
  "luminance": 0.05326
}

Semantic roles & 50–950 ramp

primary
#572098
secondary
#8EBF54
accent
#E8409B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #572098

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

Preview Lab → · Contrast checker → · Palette generator →

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