#572298#572298

#572298 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.1% C 0.178 H 298.2°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#572298
RGBrgb(87, 34, 152)
HSLhsl(267, 63%, 36%)
HSVhsv(267, 78%, 60%)
CMYKcmyk(42.8%, 77.6%, 0%, 40.4%)
CIE-LABlab(27.95, 47.94, -54.68)
CIE-LCHlch(27.95, 72.72, 311.24°)
OKLaboklab(40.05% 0.0839 -0.1564)
OKLCHoklch(40.05% 0.178 298.2)
XYZxyz(10.1685, 5.4371, 30.2134)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#572298 #639822
analogous
#222898 #572298 #922298
triadic
#572298 #985722 #229857
tetradic
#572298 #982228 #639822 #229892
square
#572298 #982228 #639822 #229892
split-complementary
#572298 #989222 #289822
monochromatic
#1E0C34 #3A1766 #572298 #742DCA #945ADA

Accessibility & contrast

On white

10.06
#572298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#572298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #572298
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##572298#FFFFFF#000000##FFFFFF
##5722981.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #572298;
/* rgb */ color: rgb(87, 34, 152);
/* oklch */ color: oklch(40.1% 0.178 298.2);
Tailwind
colors: {
  custom: {
    50: '#8d63b7',
    500: '#572298',
    950: '#000000',
  },
}
SCSS
$custom: #572298;
$custom-light: #8d63b7;
$custom-dark: #000000;
JSON
{
  "hex": "#572298",
  "rgb": {
    "r": 87,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 266.949,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40054,
    "c": 0.17754,
    "h": 298.2
  },
  "luminance": 0.05437
}

Semantic roles & 50–950 ramp

primary
#572298
secondary
#90BE57
accent
#E6419C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #572298

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

Preview Lab → · Contrast checker → · Palette generator →

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