#56297F#56297F

#56297F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.7% C 0.140 H 304.7°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#56297F
RGBrgb(86, 41, 127)
HSLhsl(271, 51%, 33%)
HSVhsv(271, 68%, 50%)
CMYKcmyk(32.3%, 67.7%, 0%, 50.2%)
CIE-LABlab(27.01, 37.87, -40.69)
CIE-LCHlch(27.01, 55.58, 312.95°)
OKLaboklab(38.73% 0.0799 -0.1154)
OKLCHoklch(38.73% 0.14 304.7)
XYZxyz(8.4606, 5.0967, 20.6126)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56297F #527F29
analogous
#2B297F #56297F #7F297D
triadic
#56297F #7F5629 #297F56
tetradic
#56297F #7F2B29 #527F29 #297D7F
square
#56297F #7F2B29 #527F29 #297D7F
split-complementary
#56297F #7D7F29 #297F2B
monochromatic
#170B22 #371A51 #56297F #7538AD #9459C9

Accessibility & contrast

On white

10.40
#56297F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#56297F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56297F
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56297F#FFFFFF#000000##FFFFFF
##56297F1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#0F407D
Tritanopia (blue-blind)
#4F3C50
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #56297f;
/* rgb */ color: rgb(86, 41, 127);
/* oklch */ color: oklch(38.7% 0.140 304.7);
Tailwind
colors: {
  custom: {
    50: '#8966a5',
    500: '#56297f',
    950: '#000000',
  },
}
SCSS
$custom: #56297f;
$custom-light: #8966a5;
$custom-dark: #000000;
JSON
{
  "hex": "#56297f",
  "rgb": {
    "r": 86,
    "g": 41,
    "b": 127
  },
  "hsl": {
    "h": 271.395,
    "s": 51.19,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38727,
    "c": 0.14033,
    "h": 304.7
  },
  "luminance": 0.05097
}

Semantic roles & 50–950 ramp

primary
#56297F
secondary
#80AF55
accent
#DB4D91
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #56297F

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

Preview Lab → · Contrast checker → · Palette generator →

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