#56127E#56127E

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

Color values

HEX#56127E
RGBrgb(86, 18, 126)
HSLhsl(278, 75%, 28%)
HSVhsv(278, 86%, 49%)
CMYKcmyk(31.7%, 85.7%, 0%, 50.6%)
CIE-LABlab(23.40, 47.65, -45.91)
CIE-LCHlch(23.40, 66.17, 316.06°)
OKLaboklab(36.15% 0.1029 -0.1306)
OKLCHoklch(36.15% 0.166 308.2)
XYZxyz(7.8192, 3.9175, 20.0789)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56127E #3A7E12
analogous
#20127E #56127E #7E1270
triadic
#56127E #7E5612 #127E56
tetradic
#56127E #7E2012 #3A7E12 #12707E
square
#56127E #7E2012 #3A7E12 #12707E
split-complementary
#56127E #707E12 #127E20
monochromatic
#12041B #310A48 #56127E #7B1AB4 #9D2AE1

Accessibility & contrast

On white

11.78
#56127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56127E
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56127E#FFFFFF#000000##FFFFFF
##56127E1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00387C
Tritanopia (blue-blind)
#4F304A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #56127e;
/* rgb */ color: rgb(86, 18, 126);
/* oklch */ color: oklch(36.1% 0.166 308.2);
Tailwind
colors: {
  custom: {
    50: '#8b5ba4',
    500: '#56127e',
    950: '#000000',
  },
}
SCSS
$custom: #56127e;
$custom-light: #8b5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#56127e",
  "rgb": {
    "r": 86,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 277.778,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.36146,
    "c": 0.16627,
    "h": 308.2
  },
  "luminance": 0.03917
}

Semantic roles & 50–950 ramp

primary
#56127E
secondary
#66B438
accent
#F2367C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #56127E

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

Preview Lab → · Contrast checker → · Palette generator →

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