#56248F#56248F

#56248F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.165 H 300.1°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#56248F
RGBrgb(86, 36, 143)
HSLhsl(268, 60%, 35%)
HSVhsv(268, 75%, 56%)
CMYKcmyk(39.9%, 74.8%, 0%, 43.9%)
CIE-LABlab(27.36, 44.53, -50.10)
CIE-LCHlch(27.36, 67.03, 311.63°)
OKLaboklab(39.38% 0.0828 -0.143)
OKLCHoklch(39.38% 0.165 300.1)
XYZxyz(9.4253, 5.2233, 26.4929)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56248F #5D8F24
analogous
#24288F #56248F #8B248F
triadic
#56248F #8F5624 #248F56
tetradic
#56248F #8F2428 #5D8F24 #248F8B
square
#56248F #8F2428 #5D8F24 #248F8B
split-complementary
#56248F #8F8B24 #288F24
monochromatic
#1B0B2D #39185E #56248F #7330C0 #9358D5

Accessibility & contrast

On white

10.27
#56248F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#56248F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56248F
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56248F#FFFFFF#000000##FFFFFF
##56248F1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#493F57
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #56248f;
/* rgb */ color: rgb(86, 36, 143);
/* oklch */ color: oklch(39.4% 0.165 300.1);
Tailwind
colors: {
  custom: {
    50: '#8b64b1',
    500: '#56248f',
    950: '#000000',
  },
}
SCSS
$custom: #56248f;
$custom-light: #8b64b1;
$custom-dark: #000000;
JSON
{
  "hex": "#56248f",
  "rgb": {
    "r": 86,
    "g": 36,
    "b": 143
  },
  "hsl": {
    "h": 268.037,
    "s": 59.777,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39375,
    "c": 0.16526,
    "h": 300.1
  },
  "luminance": 0.05223
}

Semantic roles & 50–950 ramp

primary
#56248F
secondary
#8BB955
accent
#E34599
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #56248F

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

Preview Lab → · Contrast checker → · Palette generator →

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