#56138F#56138F

#56138F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.8% C 0.182 H 302.1°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#56138F
RGBrgb(86, 19, 143)
HSLhsl(272, 77%, 32%)
HSVhsv(272, 87%, 56%)
CMYKcmyk(39.9%, 86.7%, 0%, 43.9%)
CIE-LABlab(25.04, 51.25, -53.90)
CIE-LCHlch(25.04, 74.37, 313.56°)
OKLaboklab(37.75% 0.0966 -0.154)
OKLCHoklch(37.75% 0.182 302.1)
XYZxyz(9.0273, 4.4273, 26.3602)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56138F #4C8F13
analogous
#18138F #56138F #8F138A
triadic
#56138F #8F5613 #138F56
tetradic
#56138F #8F1813 #4C8F13 #138A8F
square
#56138F #8F1813 #4C8F13 #138A8F
split-complementary
#56138F #8A8F13 #138F18
monochromatic
#150523 #360C59 #56138F #761AC5 #9538E5

Accessibility & contrast

On white

11.14
#56138F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#56138F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56138F
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56138F#FFFFFF#000000##FFFFFF
##56138F1.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#493854
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #56138f;
/* rgb */ color: rgb(86, 19, 143);
/* oklch */ color: oklch(37.8% 0.182 302.1);
Tailwind
colors: {
  custom: {
    50: '#8c5cb1',
    500: '#56138f',
    950: '#000000',
  },
}
SCSS
$custom: #56138f;
$custom-light: #8c5cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#56138f",
  "rgb": {
    "r": 86,
    "g": 19,
    "b": 143
  },
  "hsl": {
    "h": 272.419,
    "s": 76.543,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37752,
    "c": 0.18182,
    "h": 302.1
  },
  "luminance": 0.04427
}

Semantic roles & 50–950 ramp

primary
#56138F
secondary
#79C33B
accent
#F3358C
background
#F9F5FB
surface
#F1E9F6
border
#CBC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #56138F

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

Preview Lab → · Contrast checker → · Palette generator →

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