#5139C8#5139C8

#5139C8 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.7% C 0.209 H 282.4°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#5139C8
RGBrgb(81, 57, 200)
HSLhsl(250, 57%, 50%)
HSVhsv(250, 72%, 78%)
CMYKcmyk(59.5%, 71.5%, 0%, 21.6%)
CIE-LABlab(35.68, 49.09, -70.69)
CIE-LCHlch(35.68, 86.06, 304.78°)
OKLaboklab(46.69% 0.0447 -0.2037)
OKLCHoklch(46.69% 0.209 282.4)
XYZxyz(15.2785, 8.8447, 55.5345)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5139C8 #B0C839
analogous
#3968C8 #5139C8 #9839C8
triadic
#5139C8 #C85139 #39C851
tetradic
#5139C8 #C83968 #B0C839 #39C898
square
#5139C8 #C83968 #B0C839 #39C898
split-complementary
#5139C8 #C89839 #68C839
monochromatic
#2A1D69 #3D2B99 #5139C8 #7B69D5 #A599E3

Accessibility & contrast

On white

7.58
#5139C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5139C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5139C8
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5139C8#FFFFFF#000000##FFFFFF
##5139C81.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CC
Deuteranopia (green-blind)
#004FC5
Tritanopia (blue-blind)
#00607D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5139c8;
/* rgb */ color: rgb(81, 57, 200);
/* oklch */ color: oklch(46.7% 0.209 282.4);
Tailwind
colors: {
  custom: {
    50: '#8f72da',
    500: '#5139c8',
    950: '#000000',
  },
}
SCSS
$custom: #5139c8;
$custom-light: #8f72da;
$custom-dark: #000000;
JSON
{
  "hex": "#5139c8",
  "rgb": {
    "r": 81,
    "g": 57,
    "b": 200
  },
  "hsl": {
    "h": 250.07,
    "s": 56.522,
    "l": 50.392
  },
  "oklch": {
    "l": 0.46692,
    "c": 0.20854,
    "h": 282.4
  },
  "luminance": 0.08846
}

Semantic roles & 50–950 ramp

primary
#5139C8
secondary
#C4CE8F
accent
#E048C6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5139C8

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

Preview Lab → · Contrast checker → · Palette generator →

#5139C8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva