#572895#572895

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

Color values

HEX#572895
RGBrgb(87, 40, 149)
HSLhsl(266, 58%, 37%)
HSVhsv(266, 73%, 58%)
CMYKcmyk(41.6%, 73.2%, 0%, 41.6%)
CIE-LABlab(28.68, 44.35, -51.65)
CIE-LCHlch(28.68, 68.07, 310.65°)
OKLaboklab(40.49% 0.079 -0.1476)
OKLCHoklch(40.49% 0.167 298.2)
XYZxyz(10.1127, 5.7136, 28.9980)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#572895 #669528
analogous
#282F95 #572895 #8E2895
triadic
#572895 #955728 #289557
tetradic
#572895 #95282F #669528 #28958E
square
#572895 #95282F #669528 #28958E
split-complementary
#572895 #958E28 #2F9528
monochromatic
#1F0E35 #3B1B65 #572895 #7335C5 #9462D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##572895#FFFFFF#000000##FFFFFF
##5728951.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)
#004498
Deuteranopia (green-blind)
#004293
Tritanopia (blue-blind)
#48435C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #572895;
/* rgb */ color: rgb(87, 40, 149);
/* oklch */ color: oklch(40.5% 0.167 298.2);
Tailwind
colors: {
  custom: {
    50: '#8c66b5',
    500: '#572895',
    950: '#000000',
  },
}
SCSS
$custom: #572895;
$custom-light: #8c66b5;
$custom-dark: #000000;
JSON
{
  "hex": "#572895",
  "rgb": {
    "r": 87,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 265.872,
    "s": 57.672,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40491,
    "c": 0.1674,
    "h": 298.2
  },
  "luminance": 0.05714
}

Semantic roles & 50–950 ramp

primary
#572895
secondary
#93BB5E
accent
#E1479E
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #572895

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

Preview Lab → · Contrast checker → · Palette generator →

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