#5134C8#5134C8

#5134C8 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.0% C 0.214 H 283.1°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#5134C8
RGBrgb(81, 52, 200)
HSLhsl(252, 59%, 49%)
HSVhsv(252, 74%, 78%)
CMYKcmyk(59.5%, 74%, 0%, 21.6%)
CIE-LABlab(34.75, 51.71, -72.22)
CIE-LCHlch(34.75, 88.82, 305.60°)
OKLaboklab(46.03% 0.0483 -0.2081)
OKLCHoklch(46.03% 0.214 283.1)
XYZxyz(15.0434, 8.3744, 55.4561)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5134C8 #ABC834
analogous
#3461C8 #5134C8 #9B34C8
triadic
#5134C8 #C85134 #34C851
tetradic
#5134C8 #C83461 #ABC834 #34C89B
square
#5134C8 #C83461 #ABC834 #34C89B
split-complementary
#5134C8 #C89B34 #61C834
monochromatic
#2A1B67 #3D2797 #5134C8 #7963D6 #A393E3

Accessibility & contrast

On white

7.85
#5134C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5134C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5134C8
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5134C8#FFFFFF#000000##FFFFFF
##5134C81.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CC
Deuteranopia (green-blind)
#004DC5
Tritanopia (blue-blind)
#005E7B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5134c8;
/* rgb */ color: rgb(81, 52, 200);
/* oklch */ color: oklch(46.0% 0.214 283.1);
Tailwind
colors: {
  custom: {
    50: '#8f6fda',
    500: '#5134c8',
    950: '#000000',
  },
}
SCSS
$custom: #5134c8;
$custom-light: #8f6fda;
$custom-dark: #000000;
JSON
{
  "hex": "#5134c8",
  "rgb": {
    "r": 81,
    "g": 52,
    "b": 200
  },
  "hsl": {
    "h": 251.757,
    "s": 58.73,
    "l": 49.412
  },
  "oklch": {
    "l": 0.46032,
    "c": 0.21368,
    "h": 283.1
  },
  "luminance": 0.08375
}

Semantic roles & 50–950 ramp

primary
#5134C8
secondary
#C1CE8A
accent
#E246C3
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5134C8

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

Preview Lab → · Contrast checker → · Palette generator →

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