#56338E#56338E

#56338E is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.4% C 0.144 H 297.4°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#56338E
RGBrgb(86, 51, 142)
HSLhsl(263, 47%, 38%)
HSVhsv(263, 64%, 56%)
CMYKcmyk(39.4%, 64.1%, 0%, 44.3%)
CIE-LABlab(30.15, 36.33, -44.95)
CIE-LCHlch(30.15, 57.80, 308.95°)
OKLaboklab(41.35% 0.0664 -0.1279)
OKLCHoklch(41.35% 0.144 297.4)
XYZxyz(9.9028, 6.2989, 26.2800)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56338E #6B8E33
analogous
#333D8E #56338E #83338E
triadic
#56338E #8E5633 #338E56
tetradic
#56338E #8E333D #6B8E33 #338E83
square
#56338E #8E333D #6B8E33 #338E83
split-complementary
#56338E #8E8333 #3D8E33
monochromatic
#1F1334 #3B2361 #56338E #7143BB #9370CC

Accessibility & contrast

On white

9.29
#56338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#56338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56338E
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56338E#FFFFFF#000000##FFFFFF
##56338E1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#03468C
Tritanopia (blue-blind)
#49475B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #56338e;
/* rgb */ color: rgb(86, 51, 142);
/* oklch */ color: oklch(41.4% 0.144 297.4);
Tailwind
colors: {
  custom: {
    50: '#8a6db0',
    500: '#56338e',
    950: '#000000',
  },
}
SCSS
$custom: #56338e;
$custom-light: #8a6db0;
$custom-dark: #000000;
JSON
{
  "hex": "#56338e",
  "rgb": {
    "r": 86,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 263.077,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41351,
    "c": 0.14413,
    "h": 297.4
  },
  "luminance": 0.06299
}

Semantic roles & 50–950 ramp

primary
#56338E
secondary
#97B469
accent
#D751A3
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #56338E

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

Preview Lab → · Contrast checker → · Palette generator →

#56338E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva