#56257E#56257E

#56257E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.145 H 305.8°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#56257E
RGBrgb(86, 37, 126)
HSLhsl(273, 55%, 32%)
HSVhsv(273, 71%, 49%)
CMYKcmyk(31.7%, 70.6%, 0%, 50.6%)
CIE-LABlab(26.18, 39.70, -41.39)
CIE-LCHlch(26.18, 57.35, 313.80°)
OKLaboklab(38.11% 0.0848 -0.1174)
OKLCHoklch(38.11% 0.145 305.8)
XYZxyz(8.2644, 4.8080, 20.2273)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56257E #4D7E25
analogous
#2A257E #56257E #7E257A
triadic
#56257E #7E5625 #257E56
tetradic
#56257E #7E2A25 #4D7E25 #257A7E
square
#56257E #7E2A25 #4D7E25 #257A7E
split-complementary
#56257E #7A7E25 #257E2A
monochromatic
#15091F #36174F #56257E #7633AD #9551CC

Accessibility & contrast

On white

10.71
#56257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#56257E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56257E
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56257E#FFFFFF#000000##FFFFFF
##56257E1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#083E7C
Tritanopia (blue-blind)
#4F394E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #56257e;
/* rgb */ color: rgb(86, 37, 126);
/* oklch */ color: oklch(38.1% 0.145 305.8);
Tailwind
colors: {
  custom: {
    50: '#8964a4',
    500: '#56257e',
    950: '#000000',
  },
}
SCSS
$custom: #56257e;
$custom-light: #8964a4;
$custom-dark: #000000;
JSON
{
  "hex": "#56257e",
  "rgb": {
    "r": 86,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 273.034,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38109,
    "c": 0.14483,
    "h": 305.8
  },
  "luminance": 0.04808
}

Semantic roles & 50–950 ramp

primary
#56257E
secondary
#7AB04F
accent
#DE4A8C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #56257E

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

Preview Lab → · Contrast checker → · Palette generator →

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