#56339F#56339F

#56339F is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.7% C 0.165 H 293.0°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#56339F
RGBrgb(86, 51, 159)
HSLhsl(259, 51%, 41%)
HSVhsv(259, 68%, 62%)
CMYKcmyk(45.9%, 67.9%, 0%, 37.6%)
CIE-LABlab(31.46, 41.13, -53.22)
CIE-LCHlch(31.46, 67.26, 307.70°)
OKLaboklab(42.71% 0.0645 -0.1523)
OKLCHoklch(42.71% 0.165 293)
XYZxyz(11.2779, 6.8489, 33.5219)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56339F #7C9F33
analogous
#33469F #56339F #8C339F
triadic
#56339F #9F5633 #339F56
tetradic
#56339F #9F3346 #7C9F33 #339F8C
square
#56339F #9F3346 #7C9F33 #339F8C
split-complementary
#56339F #9F8C33 #469F33
monochromatic
#241542 #3D2471 #56339F #724AC5 #9679D4

Accessibility & contrast

On white

8.86
#56339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#56339F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56339F
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56339F#FFFFFF#000000##FFFFFF
##56339F1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#00489D
Tritanopia (blue-blind)
#414D64
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #56339f;
/* rgb */ color: rgb(86, 51, 159);
/* oklch */ color: oklch(42.7% 0.165 293.0);
Tailwind
colors: {
  custom: {
    50: '#8c6dbc',
    500: '#56339f',
    950: '#000000',
  },
}
SCSS
$custom: #56339f;
$custom-light: #8c6dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#56339f",
  "rgb": {
    "r": 86,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 259.444,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42705,
    "c": 0.16536,
    "h": 293
  },
  "luminance": 0.06849
}

Semantic roles & 50–950 ramp

primary
#56339F
secondary
#A4BC71
accent
#DB4DAD
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #56339F

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

Preview Lab → · Contrast checker → · Palette generator →

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