#56125F#56125F

#56125F is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.7% C 0.137 H 322.7°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#56125F
RGBrgb(86, 18, 95)
HSLhsl(293, 68%, 22%)
HSVhsv(293, 81%, 37%)
CMYKcmyk(9.5%, 81.1%, 0%, 62.7%)
CIE-LABlab(20.97, 41.04, -29.76)
CIE-LCHlch(20.97, 50.69, 324.05°)
OKLaboklab(33.68% 0.1092 -0.0832)
OKLCHoklch(33.68% 0.137 322.7)
XYZxyz(6.1194, 3.2376, 11.1269)
Luminance0.0324 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56125F #1B5F12
analogous
#30125F #56125F #5F1242
triadic
#56125F #5F5612 #125F56
tetradic
#56125F #5F3012 #1B5F12 #12425F
square
#56125F #5F3012 #1B5F12 #12425F
split-complementary
#56125F #425F12 #125F30
monochromatic
#17051A #27082C #56125F #851C92 #B325C6

Accessibility & contrast

On white

12.75
#56125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#56125F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56125F
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56125F#FFFFFF#000000##FFFFFF
##56125F1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D61
Deuteranopia (green-blind)
#1E355D
Tritanopia (blue-blind)
#572138
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #56125f;
/* rgb */ color: rgb(86, 18, 95);
/* oklch */ color: oklch(33.7% 0.137 322.7);
Tailwind
colors: {
  custom: {
    50: '#89598d',
    500: '#56125f',
    950: '#000000',
  },
}
SCSS
$custom: #56125f;
$custom-light: #89598d;
$custom-dark: #000000;
JSON
{
  "hex": "#56125f",
  "rgb": {
    "r": 86,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 292.987,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.3368,
    "c": 0.13731,
    "h": 322.7
  },
  "luminance": 0.03237
}

Semantic roles & 50–950 ramp

primary
#56125F
secondary
#419736
accent
#EB3D51
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #56125F

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

Preview Lab → · Contrast checker → · Palette generator →

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