#56127F#56127F

#56127F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.167 H 307.8°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#56127F
RGBrgb(86, 18, 127)
HSLhsl(277, 75%, 28%)
HSVhsv(277, 86%, 50%)
CMYKcmyk(32.3%, 85.8%, 0%, 50.2%)
CIE-LABlab(23.48, 47.87, -46.41)
CIE-LCHlch(23.48, 66.67, 315.89°)
OKLaboklab(36.23% 0.1026 -0.132)
OKLCHoklch(36.23% 0.167 307.8)
XYZxyz(7.8840, 3.9435, 20.4204)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56127F #3B7F12
analogous
#1F127F #56127F #7F1271
triadic
#56127F #7F5612 #127F56
tetradic
#56127F #7F1F12 #3B7F12 #12717F
square
#56127F #7F1F12 #3B7F12 #12717F
split-complementary
#56127F #717F12 #127F1F
monochromatic
#12041B #320A49 #56127F #7A1AB5 #9C2BE1

Accessibility & contrast

On white

11.74
#56127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#56127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56127F
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56127F#FFFFFF#000000##FFFFFF
##56127F1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #56127f;
/* rgb */ color: rgb(86, 18, 127);
/* oklch */ color: oklch(36.2% 0.167 307.8);
Tailwind
colors: {
  custom: {
    50: '#8b5ba5',
    500: '#56127f',
    950: '#000000',
  },
}
SCSS
$custom: #56127f;
$custom-light: #8b5ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#56127f",
  "rgb": {
    "r": 86,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 277.431,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36233,
    "c": 0.16722,
    "h": 307.8
  },
  "luminance": 0.03943
}

Semantic roles & 50–950 ramp

primary
#56127F
secondary
#67B538
accent
#F2367D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #56127F

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

Preview Lab → · Contrast checker → · Palette generator →

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