#5138C8#5138C8

#5138C8 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.6% C 0.210 H 282.5°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#5138C8
RGBrgb(81, 56, 200)
HSLhsl(250, 57%, 50%)
HSVhsv(250, 72%, 78%)
CMYKcmyk(59.5%, 72%, 0%, 21.6%)
CIE-LABlab(35.49, 49.62, -71.00)
CIE-LCHlch(35.49, 86.62, 304.95°)
OKLaboklab(46.56% 0.0454 -0.2046)
OKLCHoklch(46.56% 0.21 282.5)
XYZxyz(15.2296, 8.7468, 55.5182)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5138C8 #AFC838
analogous
#3867C8 #5138C8 #9938C8
triadic
#5138C8 #C85138 #38C851
tetradic
#5138C8 #C83867 #AFC838 #38C899
square
#5138C8 #C83867 #AFC838 #38C899
split-complementary
#5138C8 #C89938 #67C838
monochromatic
#2A1D69 #3D2A99 #5138C8 #7B68D5 #A598E3

Accessibility & contrast

On white

7.64
#5138C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5138C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5138C8
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5138C8#FFFFFF#000000##FFFFFF
##5138C81.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CC
Deuteranopia (green-blind)
#004EC5
Tritanopia (blue-blind)
#005F7C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5138c8;
/* rgb */ color: rgb(81, 56, 200);
/* oklch */ color: oklch(46.6% 0.210 282.5);
Tailwind
colors: {
  custom: {
    50: '#8f71da',
    500: '#5138c8',
    950: '#000000',
  },
}
SCSS
$custom: #5138c8;
$custom-light: #8f71da;
$custom-dark: #000000;
JSON
{
  "hex": "#5138c8",
  "rgb": {
    "r": 81,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 250.417,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.46556,
    "c": 0.20959,
    "h": 282.5
  },
  "luminance": 0.08748
}

Semantic roles & 50–950 ramp

primary
#5138C8
secondary
#C3CE8E
accent
#E048C6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5138C8

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

Preview Lab → · Contrast checker → · Palette generator →

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