#56308C#56308C

#56308C is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.7% C 0.146 H 298.7°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#56308C
RGBrgb(86, 48, 140)
HSLhsl(265, 49%, 37%)
HSVhsv(265, 66%, 55%)
CMYKcmyk(38.6%, 65.7%, 0%, 45.1%)
CIE-LABlab(29.38, 37.48, -44.97)
CIE-LCHlch(29.38, 58.54, 309.81°)
OKLaboklab(40.74% 0.0701 -0.128)
OKLCHoklch(40.74% 0.146 298.7)
XYZxyz(9.6271, 5.9857, 25.4540)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56308C #668C30
analogous
#30388C #56308C #84308C
triadic
#56308C #8C5630 #308C56
tetradic
#56308C #8C3038 #668C30 #308C84
square
#56308C #8C3038 #668C30 #308C84
split-complementary
#56308C #8C8430 #388C30
monochromatic
#1E1131 #3A205E #56308C #7240BA #936ACC

Accessibility & contrast

On white

9.56
#56308C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#56308C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56308C
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56308C#FFFFFF#000000##FFFFFF
##56308C1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#00448A
Tritanopia (blue-blind)
#4A4559
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #56308c;
/* rgb */ color: rgb(86, 48, 140);
/* oklch */ color: oklch(40.7% 0.146 298.7);
Tailwind
colors: {
  custom: {
    50: '#8a6bae',
    500: '#56308c',
    950: '#000000',
  },
}
SCSS
$custom: #56308c;
$custom-light: #8a6bae;
$custom-dark: #000000;
JSON
{
  "hex": "#56308c",
  "rgb": {
    "r": 86,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 264.783,
    "s": 48.936,
    "l": 36.863
  },
  "oklch": {
    "l": 0.4074,
    "c": 0.14597,
    "h": 298.7
  },
  "luminance": 0.05986
}

Semantic roles & 50–950 ramp

primary
#56308C
secondary
#93B364
accent
#D84FA0
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #56308C

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

Preview Lab → · Contrast checker → · Palette generator →

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