#5133C8#5133C8

#5133C8 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 45.9% C 0.215 H 283.2°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#5133C8
RGBrgb(81, 51, 200)
HSLhsl(252, 59%, 49%)
HSVhsv(252, 75%, 78%)
CMYKcmyk(59.5%, 74.5%, 0%, 21.6%)
CIE-LABlab(34.57, 52.22, -72.51)
CIE-LCHlch(34.57, 89.36, 305.76°)
OKLaboklab(45.91% 0.049 -0.209)
OKLCHoklch(45.91% 0.215 283.2)
XYZxyz(14.9993, 8.2861, 55.4414)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5133C8 #AAC833
analogous
#335FC8 #5133C8 #9C33C8
triadic
#5133C8 #C85133 #33C851
tetradic
#5133C8 #C8335F #AAC833 #33C89C
square
#5133C8 #C8335F #AAC833 #33C89C
split-complementary
#5133C8 #C89C33 #5FC833
monochromatic
#2A1A66 #3D2797 #5133C8 #7961D7 #A292E3

Accessibility & contrast

On white

7.90
#5133C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5133C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5133C8
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5133C8#FFFFFF#000000##FFFFFF
##5133C81.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CC
Deuteranopia (green-blind)
#004CC5
Tritanopia (blue-blind)
#005D7B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5133c8;
/* rgb */ color: rgb(81, 51, 200);
/* oklch */ color: oklch(45.9% 0.215 283.2);
Tailwind
colors: {
  custom: {
    50: '#8f6eda',
    500: '#5133c8',
    950: '#000000',
  },
}
SCSS
$custom: #5133c8;
$custom-light: #8f6eda;
$custom-dark: #000000;
JSON
{
  "hex": "#5133c8",
  "rgb": {
    "r": 81,
    "g": 51,
    "b": 200
  },
  "hsl": {
    "h": 252.081,
    "s": 59.363,
    "l": 49.216
  },
  "oklch": {
    "l": 0.45906,
    "c": 0.21467,
    "h": 283.2
  },
  "luminance": 0.08287
}

Semantic roles & 50–950 ramp

primary
#5133C8
secondary
#C0CE89
accent
#E345C3
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5133C8

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

Preview Lab → · Contrast checker → · Palette generator →

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