#57257F#57257F

#57257F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.146 H 306.1°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#57257F
RGBrgb(87, 37, 127)
HSLhsl(273, 55%, 32%)
HSVhsv(273, 71%, 50%)
CMYKcmyk(31.5%, 70.9%, 0%, 50.2%)
CIE-LABlab(26.40, 40.17, -41.67)
CIE-LCHlch(26.40, 57.88, 313.95°)
OKLaboklab(38.32% 0.0861 -0.1182)
OKLCHoklch(38.32% 0.146 306.1)
XYZxyz(8.4220, 4.8818, 20.5732)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57257F #4D7F25
analogous
#2A257F #57257F #7F257A
triadic
#57257F #7F5725 #257F57
tetradic
#57257F #7F2A25 #4D7F25 #257A7F
square
#57257F #7F2A25 #4D7F25 #257A7F
split-complementary
#57257F #7A7F25 #257F2A
monochromatic
#160920 #371750 #57257F #7733AE #9652CD

Accessibility & contrast

On white

10.63
#57257F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#57257F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57257F
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57257F#FFFFFF#000000##FFFFFF
##57257F1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#083F7D
Tritanopia (blue-blind)
#50394F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #57257f;
/* rgb */ color: rgb(87, 37, 127);
/* oklch */ color: oklch(38.3% 0.146 306.1);
Tailwind
colors: {
  custom: {
    50: '#8a64a5',
    500: '#57257f',
    950: '#000000',
  },
}
SCSS
$custom: #57257f;
$custom-light: #8a64a5;
$custom-dark: #000000;
JSON
{
  "hex": "#57257f",
  "rgb": {
    "r": 87,
    "g": 37,
    "b": 127
  },
  "hsl": {
    "h": 273.333,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38317,
    "c": 0.14624,
    "h": 306.1
  },
  "luminance": 0.04882
}

Semantic roles & 50–950 ramp

primary
#57257F
secondary
#7AB14F
accent
#DE4A8C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #57257F

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

Preview Lab → · Contrast checker → · Palette generator →

#57257F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva