#56338D#56338D

#56338D is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.3% C 0.143 H 297.7°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#56338D
RGBrgb(86, 51, 141)
HSLhsl(263, 47%, 38%)
HSVhsv(263, 64%, 55%)
CMYKcmyk(39%, 63.8%, 0%, 44.7%)
CIE-LABlab(30.08, 36.06, -44.45)
CIE-LCHlch(30.08, 57.23, 309.05°)
OKLaboklab(41.27% 0.0664 -0.1265)
OKLCHoklch(41.27% 0.143 297.7)
XYZxyz(9.8281, 6.2690, 25.8864)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56338D #6A8D33
analogous
#333D8D #56338D #83338D
triadic
#56338D #8D5633 #338D56
tetradic
#56338D #8D333D #6A8D33 #338D83
square
#56338D #8D333D #6A8D33 #338D83
split-complementary
#56338D #8D8333 #3D8D33
monochromatic
#1F1233 #3B2360 #56338D #7143BA #936FCB

Accessibility & contrast

On white

9.32
#56338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56338D
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56338D#FFFFFF#000000##FFFFFF
##56338D1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#06468B
Tritanopia (blue-blind)
#49475B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #56338d;
/* rgb */ color: rgb(86, 51, 141);
/* oklch */ color: oklch(41.3% 0.143 297.7);
Tailwind
colors: {
  custom: {
    50: '#8a6daf',
    500: '#56338d',
    950: '#000000',
  },
}
SCSS
$custom: #56338d;
$custom-light: #8a6daf;
$custom-dark: #000000;
JSON
{
  "hex": "#56338d",
  "rgb": {
    "r": 86,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 263.333,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41274,
    "c": 0.14286,
    "h": 297.7
  },
  "luminance": 0.06269
}

Semantic roles & 50–950 ramp

primary
#56338D
secondary
#96B369
accent
#D751A3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #56338D

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

Preview Lab → · Contrast checker → · Palette generator →

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