#56238F#56238F

#56238F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.166 H 300.2°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#56238F
RGBrgb(86, 35, 143)
HSLhsl(268, 61%, 35%)
HSVhsv(268, 76%, 56%)
CMYKcmyk(39.9%, 75.5%, 0%, 43.9%)
CIE-LABlab(27.20, 45.00, -50.37)
CIE-LCHlch(27.20, 67.54, 311.78°)
OKLaboklab(39.26% 0.0838 -0.1438)
OKLCHoklch(39.26% 0.166 300.2)
XYZxyz(9.3955, 5.1636, 26.4829)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56238F #5C8F23
analogous
#23268F #56238F #8C238F
triadic
#56238F #8F5623 #238F56
tetradic
#56238F #8F2326 #5C8F23 #238F8C
square
#56238F #8F2326 #5C8F23 #238F8C
split-complementary
#56238F #8F8C23 #268F23
monochromatic
#1B0B2D #38175E #56238F #742FC0 #9357D6

Accessibility & contrast

On white

10.33
#56238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#56238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56238F
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56238F#FFFFFF#000000##FFFFFF
##56238F1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#493E57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #56238f;
/* rgb */ color: rgb(86, 35, 143);
/* oklch */ color: oklch(39.3% 0.166 300.2);
Tailwind
colors: {
  custom: {
    50: '#8b63b1',
    500: '#56238f',
    950: '#000000',
  },
}
SCSS
$custom: #56238f;
$custom-light: #8b63b1;
$custom-dark: #000000;
JSON
{
  "hex": "#56238f",
  "rgb": {
    "r": 86,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 268.333,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39257,
    "c": 0.16643,
    "h": 300.2
  },
  "luminance": 0.05164
}

Semantic roles & 50–950 ramp

primary
#56238F
secondary
#8ABA54
accent
#E44498
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0611
muted
#7D7A80

Preview Lab

Preview with #56238F

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

Preview Lab → · Contrast checker → · Palette generator →

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