#5134CA#5134CA

#5134CA is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.2% C 0.216 H 282.8°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#5134CA
RGBrgb(81, 52, 202)
HSLhsl(252, 59%, 50%)
HSVhsv(252, 74%, 79%)
CMYKcmyk(59.9%, 74.3%, 0%, 20.8%)
CIE-LABlab(34.94, 52.30, -73.07)
CIE-LCHlch(34.94, 89.86, 305.59°)
OKLaboklab(46.22% 0.0478 -0.2106)
OKLCHoklch(46.22% 0.216 282.8)
XYZxyz(15.2787, 8.4685, 56.6951)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5134CA #ADCA34
analogous
#3462CA #5134CA #9C34CA
triadic
#5134CA #CA5134 #34CA51
tetradic
#5134CA #CA3462 #ADCA34 #34CA9C
square
#5134CA #CA3462 #ADCA34 #34CA9C
split-complementary
#5134CA #CA9C34 #62CA34
monochromatic
#2A1B69 #3D2799 #5134CA #7A64D7 #A495E4

Accessibility & contrast

On white

7.80
#5134CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5134CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5134CA
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5134CA#FFFFFF#000000##FFFFFF
##5134CA1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CE
Deuteranopia (green-blind)
#004DC7
Tritanopia (blue-blind)
#005E7D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5134ca;
/* rgb */ color: rgb(81, 52, 202);
/* oklch */ color: oklch(46.2% 0.216 282.8);
Tailwind
colors: {
  custom: {
    50: '#906fdb',
    500: '#5134ca',
    950: '#000000',
  },
}
SCSS
$custom: #5134ca;
$custom-light: #906fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5134ca",
  "rgb": {
    "r": 81,
    "g": 52,
    "b": 202
  },
  "hsl": {
    "h": 251.6,
    "s": 59.055,
    "l": 49.804
  },
  "oklch": {
    "l": 0.46223,
    "c": 0.21601,
    "h": 282.8
  },
  "luminance": 0.0847
}

Semantic roles & 50–950 ramp

primary
#5134CA
secondary
#C2CF8B
accent
#E246C4
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5134CA

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

Preview Lab → · Contrast checker → · Palette generator →

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