#57277C#57277C

#57277C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.140 H 306.9°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#57277C
RGBrgb(87, 39, 124)
HSLhsl(274, 52%, 32%)
HSVhsv(274, 69%, 49%)
CMYKcmyk(29.8%, 68.5%, 0%, 51.4%)
CIE-LABlab(26.54, 38.40, -39.54)
CIE-LCHlch(26.54, 55.12, 314.16°)
OKLaboklab(38.35% 0.084 -0.112)
OKLCHoklch(38.35% 0.14 306.9)
XYZxyz(8.2933, 4.9326, 19.5801)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57277C #4C7C27
analogous
#2C277C #57277C #7C2777
triadic
#57277C #7C5727 #277C57
tetradic
#57277C #7C2C27 #4C7C27 #27777C
square
#57277C #7C2C27 #4C7C27 #27777C
split-complementary
#57277C #777C27 #277C2C
monochromatic
#160A1F #36184D #57277C #7836AB #9654C9

Accessibility & contrast

On white

10.57
#57277C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#57277C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57277C
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57277C#FFFFFF#000000##FFFFFF
##57277C1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7F
Deuteranopia (green-blind)
#133F7A
Tritanopia (blue-blind)
#51394E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #57277c;
/* rgb */ color: rgb(87, 39, 124);
/* oklch */ color: oklch(38.4% 0.140 306.9);
Tailwind
colors: {
  custom: {
    50: '#8a65a2',
    500: '#57277c',
    950: '#000000',
  },
}
SCSS
$custom: #57277c;
$custom-light: #8a65a2;
$custom-dark: #000000;
JSON
{
  "hex": "#57277c",
  "rgb": {
    "r": 87,
    "g": 39,
    "b": 124
  },
  "hsl": {
    "h": 273.882,
    "s": 52.147,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38351,
    "c": 0.14,
    "h": 306.9
  },
  "luminance": 0.04933
}

Semantic roles & 50–950 ramp

primary
#57277C
secondary
#79AE51
accent
#DC4C8B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #57277C

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

Preview Lab → · Contrast checker → · Palette generator →

#57277C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva