#56258E#56258E

#56258E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.4% C 0.163 H 300.2°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#56258E
RGBrgb(86, 37, 142)
HSLhsl(268, 59%, 35%)
HSVhsv(268, 74%, 56%)
CMYKcmyk(39.4%, 73.9%, 0%, 44.3%)
CIE-LABlab(27.45, 43.79, -49.34)
CIE-LCHlch(27.45, 65.97, 311.59°)
OKLaboklab(39.41% 0.082 -0.1408)
OKLCHoklch(39.41% 0.163 300.2)
XYZxyz(9.3806, 5.2545, 26.1059)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56258E #5D8E25
analogous
#25298E #56258E #8A258E
triadic
#56258E #8E5625 #258E56
tetradic
#56258E #8E2529 #5D8E25 #258E8A
square
#56258E #8E2529 #5D8E25 #258E8A
split-complementary
#56258E #8E8A25 #298E25
monochromatic
#1B0C2D #39185D #56258E #7332BF #935AD4

Accessibility & contrast

On white

10.24
#56258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#56258E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56258E
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56258E#FFFFFF#000000##FFFFFF
##56258E1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#493F57
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #56258e;
/* rgb */ color: rgb(86, 37, 142);
/* oklch */ color: oklch(39.4% 0.163 300.2);
Tailwind
colors: {
  custom: {
    50: '#8b64b0',
    500: '#56258e',
    950: '#000000',
  },
}
SCSS
$custom: #56258e;
$custom-light: #8b64b0;
$custom-dark: #000000;
JSON
{
  "hex": "#56258e",
  "rgb": {
    "r": 86,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 268,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3941,
    "c": 0.16295,
    "h": 300.2
  },
  "luminance": 0.05255
}

Semantic roles & 50–950 ramp

primary
#56258E
secondary
#8BB956
accent
#E24699
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #56258E

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

Preview Lab → · Contrast checker → · Palette generator →

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