#56258D#56258D

#56258D is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.162 H 300.5°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#56258D
RGBrgb(86, 37, 141)
HSLhsl(268, 58%, 35%)
HSVhsv(268, 74%, 55%)
CMYKcmyk(39%, 73.8%, 0%, 44.7%)
CIE-LABlab(27.37, 43.53, -48.85)
CIE-LCHlch(27.37, 65.43, 311.70°)
OKLaboklab(39.32% 0.0822 -0.1394)
OKLCHoklch(39.32% 0.162 300.5)
XYZxyz(9.3059, 5.2246, 25.7123)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56258D #5C8D25
analogous
#25288D #56258D #8A258D
triadic
#56258D #8D5625 #258D56
tetradic
#56258D #8D2528 #5C8D25 #258D8A
square
#56258D #8D2528 #5C8D25 #258D8A
split-complementary
#56258D #8D8A25 #288D25
monochromatic
#1B0C2C #38185D #56258D #7432BD #9359D3

Accessibility & contrast

On white

10.27
#56258D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56258D
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56258D#FFFFFF#000000##FFFFFF
##56258D1.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#4A3F56
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #56258d;
/* rgb */ color: rgb(86, 37, 141);
/* oklch */ color: oklch(39.3% 0.162 300.5);
Tailwind
colors: {
  custom: {
    50: '#8b64af',
    500: '#56258d',
    950: '#000000',
  },
}
SCSS
$custom: #56258d;
$custom-light: #8b64af;
$custom-dark: #000000;
JSON
{
  "hex": "#56258d",
  "rgb": {
    "r": 86,
    "g": 37,
    "b": 141
  },
  "hsl": {
    "h": 268.269,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39325,
    "c": 0.16182,
    "h": 300.5
  },
  "luminance": 0.05225
}

Semantic roles & 50–950 ramp

primary
#56258D
secondary
#8AB856
accent
#E24698
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #56258D

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

Preview Lab → · Contrast checker → · Palette generator →

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