#5138CD#5138CD

#5138CD is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.0% C 0.216 H 281.9°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#5138CD
RGBrgb(81, 56, 205)
HSLhsl(250, 60%, 51%)
HSVhsv(250, 73%, 80%)
CMYKcmyk(60.5%, 72.7%, 0%, 19.6%)
CIE-LABlab(35.95, 51.12, -73.15)
CIE-LCHlch(35.95, 89.24, 304.95°)
OKLaboklab(47.02% 0.0444 -0.2109)
OKLCHoklch(47.02% 0.216 281.9)
XYZxyz(15.8235, 8.9843, 58.6461)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5138CD #B4CD38
analogous
#3869CD #5138CD #9B38CD
triadic
#5138CD #CD5138 #38CD51
tetradic
#5138CD #CD3869 #B4CD38 #38CD9B
square
#5138CD #CD3869 #B4CD38 #38CD9B
split-complementary
#5138CD #CD9B38 #69CD38
monochromatic
#2A1C6F #3C28A0 #5138CD #7C69D9 #A79AE6

Accessibility & contrast

On white

7.51
#5138CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5138CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5138CD
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5138CD#FFFFFF#000000##FFFFFF
##5138CD1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD1
Deuteranopia (green-blind)
#004FCA
Tritanopia (blue-blind)
#00617F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5138cd;
/* rgb */ color: rgb(81, 56, 205);
/* oklch */ color: oklch(47.0% 0.216 281.9);
Tailwind
colors: {
  custom: {
    50: '#9072dd',
    500: '#5138cd',
    950: '#000000',
  },
}
SCSS
$custom: #5138cd;
$custom-light: #9072dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5138cd",
  "rgb": {
    "r": 81,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 250.067,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.47024,
    "c": 0.21552,
    "h": 281.9
  },
  "luminance": 0.08985
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5138CD

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

Preview Lab → · Contrast checker → · Palette generator →

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