#56238A#56238A

#56238A is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.161 H 301.8°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#56238A
RGBrgb(86, 35, 138)
HSLhsl(270, 60%, 34%)
HSVhsv(270, 75%, 54%)
CMYKcmyk(37.7%, 74.6%, 0%, 45.9%)
CIE-LABlab(26.78, 43.72, -47.94)
CIE-LCHlch(26.78, 64.88, 312.36°)
OKLaboklab(38.83% 0.0849 -0.1367)
OKLCHoklch(38.83% 0.161 301.8)
XYZxyz(9.0251, 5.0154, 24.5324)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56238A #578A23
analogous
#23238A #56238A #8A238A
triadic
#56238A #8A5623 #238A56
tetradic
#56238A #8A2323 #578A23 #238A8A
square
#56238A #8A2323 #578A23 #238A8A
split-complementary
#56238A #8A8A23 #238A23
monochromatic
#190A28 #381759 #56238A #742FBB #9354D4

Accessibility & contrast

On white

10.48
#56238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#56238A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56238A
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56238A#FFFFFF#000000##FFFFFF
##56238A1.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#4B3C54
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #56238a;
/* rgb */ color: rgb(86, 35, 138);
/* oklch */ color: oklch(38.8% 0.161 301.8);
Tailwind
colors: {
  custom: {
    50: '#8b63ad',
    500: '#56238a',
    950: '#000000',
  },
}
SCSS
$custom: #56238a;
$custom-light: #8b63ad;
$custom-dark: #000000;
JSON
{
  "hex": "#56238a",
  "rgb": {
    "r": 86,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 269.709,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38833,
    "c": 0.16089,
    "h": 301.8
  },
  "luminance": 0.05015
}

Semantic roles & 50–950 ramp

primary
#56238A
secondary
#85B751
accent
#E34595
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #56238A

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

Preview Lab → · Contrast checker → · Palette generator →

#56238A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva