#5138CE#5138CE

#5138CE is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.1% C 0.217 H 281.8°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#5138CE
RGBrgb(81, 56, 206)
HSLhsl(250, 60%, 51%)
HSVhsv(250, 73%, 81%)
CMYKcmyk(60.7%, 72.8%, 0%, 19.2%)
CIE-LABlab(36.05, 51.42, -73.58)
CIE-LCHlch(36.05, 89.76, 304.95°)
OKLaboklab(47.12% 0.0442 -0.2121)
OKLCHoklch(47.12% 0.217 281.8)
XYZxyz(15.9446, 9.0328, 59.2838)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5138CE #B5CE38
analogous
#386ACE #5138CE #9C38CE
triadic
#5138CE #CE5138 #38CE51
tetradic
#5138CE #CE386A #B5CE38 #38CE9C
square
#5138CE #CE386A #B5CE38 #38CE9C
split-complementary
#5138CE #CE9C38 #6ACE38
monochromatic
#2A1C70 #3C28A1 #5138CE #7C69DA #A79AE6

Accessibility & contrast

On white

7.48
#5138CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5138CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5138CE
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5138CE#FFFFFF#000000##FFFFFF
##5138CE1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD2
Deuteranopia (green-blind)
#004FCB
Tritanopia (blue-blind)
#006280
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5138ce;
/* rgb */ color: rgb(81, 56, 206);
/* oklch */ color: oklch(47.1% 0.217 281.8);
Tailwind
colors: {
  custom: {
    50: '#9072de',
    500: '#5138ce',
    950: '#000000',
  },
}
SCSS
$custom: #5138ce;
$custom-light: #9072de;
$custom-dark: #000000;
JSON
{
  "hex": "#5138ce",
  "rgb": {
    "r": 81,
    "g": 56,
    "b": 206
  },
  "hsl": {
    "h": 250,
    "s": 60.484,
    "l": 51.373
  },
  "oklch": {
    "l": 0.47119,
    "c": 0.2167,
    "h": 281.8
  },
  "luminance": 0.09034
}

Semantic roles & 50–950 ramp

primary
#5138CE
secondary
#C7D290
accent
#E444C9
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5138CE

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

Preview Lab → · Contrast checker → · Palette generator →

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