#56238D#56238D

#56238D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.164 H 300.9°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#56238D
RGBrgb(86, 35, 141)
HSLhsl(269, 60%, 35%)
HSVhsv(269, 75%, 55%)
CMYKcmyk(39%, 75.2%, 0%, 44.7%)
CIE-LABlab(27.03, 44.48, -49.40)
CIE-LCHlch(27.03, 66.48, 312.00°)
OKLaboklab(39.09% 0.0842 -0.141)
OKLCHoklch(39.09% 0.164 300.9)
XYZxyz(9.2453, 5.1035, 25.6921)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56238D #5A8D23
analogous
#23258D #56238D #8B238D
triadic
#56238D #8D5623 #238D56
tetradic
#56238D #8D2325 #5A8D23 #238D8B
square
#56238D #8D2325 #5A8D23 #238D8B
split-complementary
#56238D #8D8B23 #258D23
monochromatic
#1A0B2B #38175C #56238D #742FBE #9355D5

Accessibility & contrast

On white

10.39
#56238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#56238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56238D
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56238D#FFFFFF#000000##FFFFFF
##56238D1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#4A3E56
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #56238d;
/* rgb */ color: rgb(86, 35, 141);
/* oklch */ color: oklch(39.1% 0.164 300.9);
Tailwind
colors: {
  custom: {
    50: '#8b63af',
    500: '#56238d',
    950: '#000000',
  },
}
SCSS
$custom: #56238d;
$custom-light: #8b63af;
$custom-dark: #000000;
JSON
{
  "hex": "#56238d",
  "rgb": {
    "r": 86,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 268.868,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39086,
    "c": 0.16422,
    "h": 300.9
  },
  "luminance": 0.05104
}

Semantic roles & 50–950 ramp

primary
#56238D
secondary
#88B953
accent
#E34497
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #56238D

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

Preview Lab → · Contrast checker → · Palette generator →

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