#5138CC#5138CC

#5138CC is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 46.9% C 0.214 H 282.0°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#5138CC
RGBrgb(81, 56, 204)
HSLhsl(250, 59%, 51%)
HSVhsv(250, 73%, 80%)
CMYKcmyk(60.3%, 72.5%, 0%, 20%)
CIE-LABlab(35.86, 50.82, -72.72)
CIE-LCHlch(35.86, 88.72, 304.95°)
OKLaboklab(46.93% 0.0446 -0.2096)
OKLCHoklch(46.93% 0.214 282)
XYZxyz(15.7032, 8.9362, 58.0124)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5138CC #B3CC38
analogous
#3869CC #5138CC #9B38CC
triadic
#5138CC #CC5138 #38CC51
tetradic
#5138CC #CC3869 #B3CC38 #38CC9B
square
#5138CC #CC3869 #B3CC38 #38CC9B
split-complementary
#5138CC #CC9B38 #69CC38
monochromatic
#2A1C6E #3C299E #5138CC #7C69D8 #A699E5

Accessibility & contrast

On white

7.53
#5138CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5138CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5138CC
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5138CC#FFFFFF#000000##FFFFFF
##5138CC1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D0
Deuteranopia (green-blind)
#004FC9
Tritanopia (blue-blind)
#00617F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5138cc;
/* rgb */ color: rgb(81, 56, 204);
/* oklch */ color: oklch(46.9% 0.214 282.0);
Tailwind
colors: {
  custom: {
    50: '#9071dd',
    500: '#5138cc',
    950: '#000000',
  },
}
SCSS
$custom: #5138cc;
$custom-light: #9071dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5138cc",
  "rgb": {
    "r": 81,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 250.135,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.4693,
    "c": 0.21434,
    "h": 282
  },
  "luminance": 0.08937
}

Semantic roles & 50–950 ramp

primary
#5138CC
secondary
#C6D18F
accent
#E245C8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5138CC

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

Preview Lab → · Contrast checker → · Palette generator →

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