#56238C#56238C

#56238C is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.163 H 301.2°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#56238C
RGBrgb(86, 35, 140)
HSLhsl(269, 60%, 34%)
HSVhsv(269, 75%, 55%)
CMYKcmyk(38.6%, 75%, 0%, 45.1%)
CIE-LABlab(26.94, 44.23, -48.92)
CIE-LCHlch(26.94, 65.95, 312.12°)
OKLaboklab(39% 0.0844 -0.1396)
OKLCHoklch(39% 0.163 301.2)
XYZxyz(9.1713, 5.0739, 25.3020)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56238C #598C23
analogous
#23258C #56238C #8B238C
triadic
#56238C #8C5623 #238C56
tetradic
#56238C #8C2325 #598C23 #238C8B
square
#56238C #8C2325 #598C23 #238C8B
split-complementary
#56238C #8C8B23 #258C23
monochromatic
#1A0B2A #38175B #56238C #742FBD #9355D4

Accessibility & contrast

On white

10.42
#56238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#56238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56238C
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56238C#FFFFFF#000000##FFFFFF
##56238C1.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#003F8A
Tritanopia (blue-blind)
#4A3D55
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #56238c;
/* rgb */ color: rgb(86, 35, 140);
/* oklch */ color: oklch(39.0% 0.163 301.2);
Tailwind
colors: {
  custom: {
    50: '#8b63ae',
    500: '#56238c',
    950: '#000000',
  },
}
SCSS
$custom: #56238c;
$custom-light: #8b63ae;
$custom-dark: #000000;
JSON
{
  "hex": "#56238c",
  "rgb": {
    "r": 86,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 269.143,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39002,
    "c": 0.16312,
    "h": 301.2
  },
  "luminance": 0.05074
}

Semantic roles & 50–950 ramp

primary
#56238C
secondary
#87B852
accent
#E34596
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #56238C

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

Preview Lab → · Contrast checker → · Palette generator →

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