#5138CA#5138CA

#5138CA is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.7% C 0.212 H 282.3°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#5138CA
RGBrgb(81, 56, 202)
HSLhsl(250, 58%, 51%)
HSVhsv(250, 72%, 79%)
CMYKcmyk(59.9%, 72.3%, 0%, 20.8%)
CIE-LABlab(35.68, 50.22, -71.86)
CIE-LCHlch(35.68, 87.67, 304.95°)
OKLaboklab(46.74% 0.045 -0.2071)
OKLCHoklch(46.74% 0.212 282.3)
XYZxyz(15.4649, 8.8409, 56.7572)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5138CA #B1CA38
analogous
#3868CA #5138CA #9A38CA
triadic
#5138CA #CA5138 #38CA51
tetradic
#5138CA #CA3868 #B1CA38 #38CA9A
square
#5138CA #CA3868 #B1CA38 #38CA9A
split-complementary
#5138CA #CA9A38 #68CA38
monochromatic
#2A1D6B #3D299B #5138CA #7B68D7 #A699E4

Accessibility & contrast

On white

7.59
#5138CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5138CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5138CA
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5138CA#FFFFFF#000000##FFFFFF
##5138CA1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CE
Deuteranopia (green-blind)
#004FC7
Tritanopia (blue-blind)
#00607E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5138ca;
/* rgb */ color: rgb(81, 56, 202);
/* oklch */ color: oklch(46.7% 0.212 282.3);
Tailwind
colors: {
  custom: {
    50: '#8f71db',
    500: '#5138ca',
    950: '#000000',
  },
}
SCSS
$custom: #5138ca;
$custom-light: #8f71db;
$custom-dark: #000000;
JSON
{
  "hex": "#5138ca",
  "rgb": {
    "r": 81,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 250.274,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46743,
    "c": 0.21197,
    "h": 282.3
  },
  "luminance": 0.08842
}

Semantic roles & 50–950 ramp

primary
#5138CA
secondary
#C4CF8E
accent
#E147C7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5138CA

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

Preview Lab → · Contrast checker → · Palette generator →

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