#572894#572894

#572894 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.166 H 298.5°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#572894
RGBrgb(87, 40, 148)
HSLhsl(266, 57%, 37%)
HSVhsv(266, 73%, 58%)
CMYKcmyk(41.2%, 73%, 0%, 42%)
CIE-LABlab(28.59, 44.08, -51.17)
CIE-LCHlch(28.59, 67.54, 310.75°)
OKLaboklab(40.41% 0.0792 -0.1462)
OKLCHoklch(40.41% 0.166 298.5)
XYZxyz(10.0332, 5.6818, 28.5793)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#572894 #659428
analogous
#282F94 #572894 #8D2894
triadic
#572894 #945728 #289457
tetradic
#572894 #94282F #659428 #28948D
square
#572894 #94282F #659428 #28948D
split-complementary
#572894 #948D28 #2F9428
monochromatic
#1E0E34 #3B1B64 #572894 #7335C4 #9462D5

Accessibility & contrast

On white

9.83
#572894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #572894
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##572894#FFFFFF#000000##FFFFFF
##5728941.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #572894;
/* rgb */ color: rgb(87, 40, 148);
/* oklch */ color: oklch(40.4% 0.166 298.5);
Tailwind
colors: {
  custom: {
    50: '#8c66b4',
    500: '#572894',
    950: '#000000',
  },
}
SCSS
$custom: #572894;
$custom-light: #8c66b4;
$custom-dark: #000000;
JSON
{
  "hex": "#572894",
  "rgb": {
    "r": 87,
    "g": 40,
    "b": 148
  },
  "hsl": {
    "h": 266.111,
    "s": 57.447,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40406,
    "c": 0.16626,
    "h": 298.5
  },
  "luminance": 0.05682
}

Semantic roles & 50–950 ramp

primary
#572894
secondary
#92BA5E
accent
#E1479E
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #572894

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

Preview Lab → · Contrast checker → · Palette generator →

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