#56298B#56298B

#56298B is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.7% C 0.154 H 300.5°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#56298B
RGBrgb(86, 41, 139)
HSLhsl(268, 54%, 35%)
HSVhsv(268, 71%, 55%)
CMYKcmyk(38.1%, 70.5%, 0%, 45.5%)
CIE-LABlab(27.92, 41.00, -46.71)
CIE-LCHlch(27.92, 62.15, 311.28°)
OKLaboklab(39.67% 0.0783 -0.1331)
OKLCHoklch(39.67% 0.154 300.5)
XYZxyz(9.2897, 5.4283, 24.9794)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56298B #5E8B29
analogous
#292D8B #56298B #87298B
triadic
#56298B #8B5629 #298B56
tetradic
#56298B #8B292D #5E8B29 #298B87
square
#56298B #8B292D #5E8B29 #298B87
split-complementary
#56298B #8B8729 #2D8B29
monochromatic
#1C0D2C #391B5C #56298B #7337BA #935FD0

Accessibility & contrast

On white

10.07
#56298B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#56298B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56298B
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56298B#FFFFFF#000000##FFFFFF
##56298B1.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#4A4057
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #56298b;
/* rgb */ color: rgb(86, 41, 139);
/* oklch */ color: oklch(39.7% 0.154 300.5);
Tailwind
colors: {
  custom: {
    50: '#8a66ae',
    500: '#56298b',
    950: '#000000',
  },
}
SCSS
$custom: #56298b;
$custom-light: #8a66ae;
$custom-dark: #000000;
JSON
{
  "hex": "#56298b",
  "rgb": {
    "r": 86,
    "g": 41,
    "b": 139
  },
  "hsl": {
    "h": 267.551,
    "s": 54.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39671,
    "c": 0.15443,
    "h": 300.5
  },
  "luminance": 0.05428
}

Semantic roles & 50–950 ramp

primary
#56298B
secondary
#8CB55B
accent
#DE4A9A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #56298B

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

Preview Lab → · Contrast checker → · Palette generator →

#56298B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva