#56338F#56338F

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

Color values

HEX#56338F
RGBrgb(86, 51, 143)
HSLhsl(263, 47%, 38%)
HSVhsv(263, 64%, 56%)
CMYKcmyk(39.9%, 64.3%, 0%, 43.9%)
CIE-LABlab(30.23, 36.61, -45.44)
CIE-LCHlch(30.23, 58.36, 308.86°)
OKLaboklab(41.43% 0.0663 -0.1294)
OKLCHoklch(41.43% 0.145 297.1)
XYZxyz(9.9782, 6.3291, 26.6772)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56338F #6C8F33
analogous
#333E8F #56338F #84338F
triadic
#56338F #8F5633 #338F56
tetradic
#56338F #8F333E #6C8F33 #338F84
square
#56338F #8F333E #6C8F33 #338F84
split-complementary
#56338F #8F8433 #3E8F33
monochromatic
#201335 #3B2362 #56338F #7143BC #9370CC

Accessibility & contrast

On white

9.27
#56338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#56338F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56338F
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56338F#FFFFFF#000000##FFFFFF
##56338F1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#00468D
Tritanopia (blue-blind)
#48485C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #56338f;
/* rgb */ color: rgb(86, 51, 143);
/* oklch */ color: oklch(41.4% 0.145 297.1);
Tailwind
colors: {
  custom: {
    50: '#8a6db0',
    500: '#56338f',
    950: '#000000',
  },
}
SCSS
$custom: #56338f;
$custom-light: #8a6db0;
$custom-dark: #000000;
JSON
{
  "hex": "#56338f",
  "rgb": {
    "r": 86,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 262.826,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41427,
    "c": 0.14539,
    "h": 297.1
  },
  "luminance": 0.06329
}

Semantic roles & 50–950 ramp

primary
#56338F
secondary
#98B46A
accent
#D751A4
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #56338F

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

Preview Lab → · Contrast checker → · Palette generator →

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