#5139C5#5139C5

#5139C5 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.4% C 0.205 H 282.8°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#5139C5
RGBrgb(81, 57, 197)
HSLhsl(250, 55%, 50%)
HSVhsv(250, 71%, 77%)
CMYKcmyk(58.9%, 71.1%, 0%, 22.7%)
CIE-LABlab(35.41, 48.19, -69.38)
CIE-LCHlch(35.41, 84.47, 304.78°)
OKLaboklab(46.42% 0.0453 -0.1999)
OKLCHoklch(46.42% 0.205 282.8)
XYZxyz(14.9314, 8.7058, 53.7061)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5139C5 #ADC539
analogous
#3967C5 #5139C5 #9739C5
triadic
#5139C5 #C55139 #39C551
tetradic
#5139C5 #C53967 #ADC539 #39C597
square
#5139C5 #C53967 #ADC539 #39C597
split-complementary
#5139C5 #C59739 #67C539
monochromatic
#2A1E66 #3D2B96 #5139C5 #7A68D3 #A497E1

Accessibility & contrast

On white

7.66
#5139C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5139C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5139C5
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5139C5#FFFFFF#000000##FFFFFF
##5139C51.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C9
Deuteranopia (green-blind)
#004EC2
Tritanopia (blue-blind)
#015F7B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5139c5;
/* rgb */ color: rgb(81, 57, 197);
/* oklch */ color: oklch(46.4% 0.205 282.8);
Tailwind
colors: {
  custom: {
    50: '#8e72d8',
    500: '#5139c5',
    950: '#000000',
  },
}
SCSS
$custom: #5139c5;
$custom-light: #8e72d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5139c5",
  "rgb": {
    "r": 81,
    "g": 57,
    "b": 197
  },
  "hsl": {
    "h": 250.286,
    "s": 55.118,
    "l": 49.804
  },
  "oklch": {
    "l": 0.46416,
    "c": 0.20494,
    "h": 282.8
  },
  "luminance": 0.08707
}

Semantic roles & 50–950 ramp

primary
#5139C5
secondary
#C2CD8D
accent
#DE49C5
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5139C5

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

Preview Lab → · Contrast checker → · Palette generator →

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