#56247B#56247B

#56247B is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.7% C 0.143 H 307.2°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#56247B
RGBrgb(86, 36, 123)
HSLhsl(274, 55%, 31%)
HSVhsv(274, 71%, 48%)
CMYKcmyk(30.1%, 70.7%, 0%, 51.8%)
CIE-LABlab(25.77, 39.45, -40.15)
CIE-LCHlch(25.77, 56.29, 314.50°)
OKLaboklab(37.75% 0.0863 -0.1138)
OKLCHoklch(37.75% 0.143 307.2)
XYZxyz(8.0430, 4.6703, 19.2128)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56247B #497B24
analogous
#2A247B #56247B #7B2474
triadic
#56247B #7B5624 #247B56
tetradic
#56247B #7B2A24 #497B24 #24747B
square
#56247B #7B2A24 #497B24 #24747B
split-complementary
#56247B #747B24 #247B2A
monochromatic
#14081C #35164C #56247B #7732AA #964ECB

Accessibility & contrast

On white

10.86
#56247B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#56247B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56247B
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56247B#FFFFFF#000000##FFFFFF
##56247B1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#0E3D79
Tritanopia (blue-blind)
#50374C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #56247b;
/* rgb */ color: rgb(86, 36, 123);
/* oklch */ color: oklch(37.7% 0.143 307.2);
Tailwind
colors: {
  custom: {
    50: '#8963a2',
    500: '#56247b',
    950: '#000000',
  },
}
SCSS
$custom: #56247b;
$custom-light: #8963a2;
$custom-dark: #000000;
JSON
{
  "hex": "#56247b",
  "rgb": {
    "r": 86,
    "g": 36,
    "b": 123
  },
  "hsl": {
    "h": 274.483,
    "s": 54.717,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37747,
    "c": 0.14282,
    "h": 307.2
  },
  "luminance": 0.0467
}

Semantic roles & 50–950 ramp

primary
#56247B
secondary
#76AD4D
accent
#DE4A89
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #56247B

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

Preview Lab → · Contrast checker → · Palette generator →

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