#56127D#56127D

#56127D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.165 H 308.6°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#56127D
RGBrgb(86, 18, 125)
HSLhsl(278, 75%, 28%)
HSVhsv(278, 86%, 49%)
CMYKcmyk(31.2%, 85.6%, 0%, 51%)
CIE-LABlab(23.31, 47.42, -45.42)
CIE-LCHlch(23.31, 65.66, 316.23°)
OKLaboklab(36.06% 0.1032 -0.1291)
OKLCHoklch(36.06% 0.165 308.6)
XYZxyz(7.7550, 3.8919, 19.7407)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56127D #397D12
analogous
#21127D #56127D #7D126E
triadic
#56127D #7D5612 #127D56
tetradic
#56127D #7D2112 #397D12 #126E7D
square
#56127D #7D2112 #397D12 #126E7D
split-complementary
#56127D #6E7D12 #127D21
monochromatic
#12041B #310A48 #56127D #7B1AB2 #9E29E0

Accessibility & contrast

On white

11.81
#56127D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#56127D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56127D
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56127D#FFFFFF#000000##FFFFFF
##56127D1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#502F49
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #56127d;
/* rgb */ color: rgb(86, 18, 125);
/* oklch */ color: oklch(36.1% 0.165 308.6);
Tailwind
colors: {
  custom: {
    50: '#8a5ba3',
    500: '#56127d',
    950: '#000000',
  },
}
SCSS
$custom: #56127d;
$custom-light: #8a5ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#56127d",
  "rgb": {
    "r": 86,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 278.131,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.36059,
    "c": 0.16532,
    "h": 308.6
  },
  "luminance": 0.03892
}

Semantic roles & 50–950 ramp

primary
#56127D
secondary
#65B338
accent
#F1367B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #56127D

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

Preview Lab → · Contrast checker → · Palette generator →

#56127D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva