#56257F#56257F

#56257F is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.146 H 305.4°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#56257F
RGBrgb(86, 37, 127)
HSLhsl(273, 55%, 32%)
HSVhsv(273, 71%, 50%)
CMYKcmyk(32.3%, 70.9%, 0%, 50.2%)
CIE-LABlab(26.26, 39.95, -41.90)
CIE-LCHlch(26.26, 57.89, 313.63°)
OKLaboklab(38.19% 0.0846 -0.1189)
OKLCHoklch(38.19% 0.146 305.4)
XYZxyz(8.3292, 4.8339, 20.5688)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56257F #4E7F25
analogous
#29257F #56257F #7F257B
triadic
#56257F #7F5625 #257F56
tetradic
#56257F #7F2925 #4E7F25 #257B7F
square
#56257F #7F2925 #4E7F25 #257B7F
split-complementary
#56257F #7B7F25 #257F29
monochromatic
#160920 #361750 #56257F #7633AE #9552CD

Accessibility & contrast

On white

10.68
#56257F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#56257F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56257F
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56257F#FFFFFF#000000##FFFFFF
##56257F1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#063E7D
Tritanopia (blue-blind)
#4F394F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #56257f;
/* rgb */ color: rgb(86, 37, 127);
/* oklch */ color: oklch(38.2% 0.146 305.4);
Tailwind
colors: {
  custom: {
    50: '#8964a5',
    500: '#56257f',
    950: '#000000',
  },
}
SCSS
$custom: #56257f;
$custom-light: #8964a5;
$custom-dark: #000000;
JSON
{
  "hex": "#56257f",
  "rgb": {
    "r": 86,
    "g": 37,
    "b": 127
  },
  "hsl": {
    "h": 272.667,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38188,
    "c": 0.14596,
    "h": 305.4
  },
  "luminance": 0.04834
}

Semantic roles & 50–950 ramp

primary
#56257F
secondary
#7CB14F
accent
#DE4A8D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #56257F

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

Preview Lab → · Contrast checker → · Palette generator →

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