#56338C#56338C

#56338C is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.2% C 0.142 H 298.0°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#56338C
RGBrgb(86, 51, 140)
HSLhsl(264, 47%, 37%)
HSVhsv(264, 64%, 55%)
CMYKcmyk(38.6%, 63.6%, 0%, 45.1%)
CIE-LABlab(30.01, 35.78, -43.95)
CIE-LCHlch(30.01, 56.67, 309.15°)
OKLaboklab(41.2% 0.0665 -0.125)
OKLCHoklch(41.2% 0.142 298)
XYZxyz(9.7540, 6.2394, 25.4963)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56338C #698C33
analogous
#333C8C #56338C #83338C
triadic
#56338C #8C5633 #338C56
tetradic
#56338C #8C333C #698C33 #338C83
square
#56338C #8C333C #698C33 #338C83
split-complementary
#56338C #8C8333 #3C8C33
monochromatic
#1F1232 #3A235F #56338C #7243B9 #936FCB

Accessibility & contrast

On white

9.34
#56338C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#56338C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56338C
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56338C#FFFFFF#000000##FFFFFF
##56338C1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478F
Deuteranopia (green-blind)
#0A468A
Tritanopia (blue-blind)
#49475A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #56338c;
/* rgb */ color: rgb(86, 51, 140);
/* oklch */ color: oklch(41.2% 0.142 298.0);
Tailwind
colors: {
  custom: {
    50: '#8a6cae',
    500: '#56338c',
    950: '#000000',
  },
}
SCSS
$custom: #56338c;
$custom-light: #8a6cae;
$custom-dark: #000000;
JSON
{
  "hex": "#56338c",
  "rgb": {
    "r": 86,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 263.596,
    "s": 46.597,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41198,
    "c": 0.14159,
    "h": 298
  },
  "luminance": 0.0624
}

Semantic roles & 50–950 ramp

primary
#56338C
secondary
#95B268
accent
#D652A2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #56338C

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

Preview Lab → · Contrast checker → · Palette generator →

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