#5134CD#5134CD

#5134CD is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.5% C 0.219 H 282.4°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#5134CD
RGBrgb(81, 52, 205)
HSLhsl(251, 60%, 50%)
HSVhsv(251, 75%, 80%)
CMYKcmyk(60.5%, 74.6%, 0%, 19.6%)
CIE-LABlab(35.23, 53.17, -74.35)
CIE-LCHlch(35.23, 91.40, 305.57°)
OKLaboklab(46.51% 0.0471 -0.2144)
OKLCHoklch(46.51% 0.219 282.4)
XYZxyz(15.6373, 8.6120, 58.5840)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5134CD #B0CD34
analogous
#3463CD #5134CD #9E34CD
triadic
#5134CD #CD5134 #34CD51
tetradic
#5134CD #CD3463 #B0CD34 #34CD9E
square
#5134CD #CD3463 #B0CD34 #34CD9E
split-complementary
#5134CD #CD9E34 #63CD34
monochromatic
#2A1B6C #3D279D #5134CD #7B65D9 #A596E5

Accessibility & contrast

On white

7.71
#5134CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5134CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5134CD
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5134CD#FFFFFF#000000##FFFFFF
##5134CD1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D1
Deuteranopia (green-blind)
#004DCA
Tritanopia (blue-blind)
#005F7E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5134cd;
/* rgb */ color: rgb(81, 52, 205);
/* oklch */ color: oklch(46.5% 0.219 282.4);
Tailwind
colors: {
  custom: {
    50: '#906fde',
    500: '#5134cd',
    950: '#000000',
  },
}
SCSS
$custom: #5134cd;
$custom-light: #906fde;
$custom-dark: #000000;
JSON
{
  "hex": "#5134cd",
  "rgb": {
    "r": 81,
    "g": 52,
    "b": 205
  },
  "hsl": {
    "h": 251.373,
    "s": 60.474,
    "l": 50.392
  },
  "oklch": {
    "l": 0.4651,
    "c": 0.21948,
    "h": 282.4
  },
  "luminance": 0.08613
}

Semantic roles & 50–950 ramp

primary
#5134CD
secondary
#C4D18C
accent
#E444C5
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5134CD

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

Preview Lab → · Contrast checker → · Palette generator →

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