#5138C7#5138C7

#5138C7 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.5% C 0.208 H 282.6°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#5138C7
RGBrgb(81, 56, 199)
HSLhsl(250, 56%, 50%)
HSVhsv(250, 72%, 78%)
CMYKcmyk(59.3%, 71.9%, 0%, 22%)
CIE-LABlab(35.40, 49.32, -70.57)
CIE-LCHlch(35.40, 86.10, 304.95°)
OKLaboklab(46.46% 0.0456 -0.2033)
OKLCHoklch(46.46% 0.208 282.6)
XYZxyz(15.1131, 8.7002, 54.9047)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5138C7 #AEC738
analogous
#3866C7 #5138C7 #9938C7
triadic
#5138C7 #C75138 #38C751
tetradic
#5138C7 #C73866 #AEC738 #38C799
square
#5138C7 #C73866 #AEC738 #38C799
split-complementary
#5138C7 #C79938 #66C738
monochromatic
#2A1D67 #3E2B97 #5138C7 #7B68D4 #A598E2

Accessibility & contrast

On white

7.66
#5138C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5138C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5138C7
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5138C7#FFFFFF#000000##FFFFFF
##5138C71.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)
#0058CB
Deuteranopia (green-blind)
#004EC4
Tritanopia (blue-blind)
#005F7C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5138c7;
/* rgb */ color: rgb(81, 56, 199);
/* oklch */ color: oklch(46.5% 0.208 282.6);
Tailwind
colors: {
  custom: {
    50: '#8f71d9',
    500: '#5138c7',
    950: '#000000',
  },
}
SCSS
$custom: #5138c7;
$custom-light: #8f71d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5138c7",
  "rgb": {
    "r": 81,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 250.49,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.46464,
    "c": 0.20841,
    "h": 282.6
  },
  "luminance": 0.08701
}

Semantic roles & 50–950 ramp

primary
#5138C7
secondary
#C2CD8D
accent
#DF48C5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5138C7

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

Preview Lab → · Contrast checker → · Palette generator →

#5138C7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva