#571281#571281

#571281 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.5% C 0.169 H 307.6°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#571281
RGBrgb(87, 18, 129)
HSLhsl(277, 76%, 29%)
HSVhsv(277, 86%, 51%)
CMYKcmyk(32.6%, 86%, 0%, 49.4%)
CIE-LABlab(23.82, 48.49, -47.12)
CIE-LCHlch(23.82, 67.61, 315.82°)
OKLaboklab(36.55% 0.1035 -0.1341)
OKLCHoklch(36.55% 0.169 307.6)
XYZxyz(8.1084, 4.0439, 21.1180)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#571281 #3C8112
analogous
#201281 #571281 #811274
triadic
#571281 #815712 #128157
tetradic
#571281 #812012 #3C8112 #127481
square
#571281 #812012 #3C8112 #127481
split-complementary
#571281 #748112 #128120
monochromatic
#12041B #330B4B #571281 #7B19B7 #9D2CE2

Accessibility & contrast

On white

11.61
#571281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#571281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #571281
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##571281#FFFFFF#000000##FFFFFF
##5712811.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00397F
Tritanopia (blue-blind)
#50314C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #571281;
/* rgb */ color: rgb(87, 18, 129);
/* oklch */ color: oklch(36.5% 0.169 307.6);
Tailwind
colors: {
  custom: {
    50: '#8b5ba6',
    500: '#571281',
    950: '#000000',
  },
}
SCSS
$custom: #571281;
$custom-light: #8b5ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#571281",
  "rgb": {
    "r": 87,
    "g": 18,
    "b": 129
  },
  "hsl": {
    "h": 277.297,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3655,
    "c": 0.16939,
    "h": 307.6
  },
  "luminance": 0.04044
}

Semantic roles & 50–950 ramp

primary
#571281
secondary
#68B738
accent
#F2367D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0D040F
muted
#7D797F

Preview Lab

Preview with #571281

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

Preview Lab → · Contrast checker → · Palette generator →

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