#56298C#56298C

#56298C is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.8% C 0.156 H 300.2°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#56298C
RGBrgb(86, 41, 140)
HSLhsl(267, 55%, 35%)
HSVhsv(267, 71%, 55%)
CMYKcmyk(38.6%, 70.7%, 0%, 45.1%)
CIE-LABlab(28.00, 41.26, -47.20)
CIE-LCHlch(28.00, 62.69, 311.16°)
OKLaboklab(39.75% 0.0782 -0.1345)
OKLCHoklch(39.75% 0.156 300.2)
XYZxyz(9.3631, 5.4577, 25.3660)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56298C #5F8C29
analogous
#292D8C #56298C #87298C
triadic
#56298C #8C5629 #298C56
tetradic
#56298C #8C292D #5F8C29 #298C87
square
#56298C #8C292D #5F8C29 #298C87
split-complementary
#56298C #8C8729 #2D8C29
monochromatic
#1C0D2D #391B5D #56298C #7337BB #935FD0

Accessibility & contrast

On white

10.04
#56298C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56298C
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56298C#FFFFFF#000000##FFFFFF
##56298C1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428F
Deuteranopia (green-blind)
#00418A
Tritanopia (blue-blind)
#4A4057
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #56298c;
/* rgb */ color: rgb(86, 41, 140);
/* oklch */ color: oklch(39.8% 0.156 300.2);
Tailwind
colors: {
  custom: {
    50: '#8a66ae',
    500: '#56298c',
    950: '#000000',
  },
}
SCSS
$custom: #56298c;
$custom-light: #8a66ae;
$custom-dark: #000000;
JSON
{
  "hex": "#56298c",
  "rgb": {
    "r": 86,
    "g": 41,
    "b": 140
  },
  "hsl": {
    "h": 267.273,
    "s": 54.696,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39752,
    "c": 0.1556,
    "h": 300.2
  },
  "luminance": 0.05458
}

Semantic roles & 50–950 ramp

primary
#56298C
secondary
#8DB65B
accent
#DE4A9B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #56298C

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

Preview Lab → · Contrast checker → · Palette generator →

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