#5133C6#5133C6

#5133C6 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.7% C 0.212 H 283.5°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#5133C6
RGBrgb(81, 51, 198)
HSLhsl(252, 59%, 49%)
HSVhsv(252, 74%, 78%)
CMYKcmyk(59.1%, 74.2%, 0%, 22.4%)
CIE-LABlab(34.38, 51.63, -71.66)
CIE-LCHlch(34.38, 88.32, 305.77°)
OKLaboklab(45.72% 0.0495 -0.2065)
OKLCHoklch(45.72% 0.212 283.5)
XYZxyz(14.7671, 8.1932, 54.2184)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5133C6 #A8C633
analogous
#335FC6 #5133C6 #9B33C6
triadic
#5133C6 #C65133 #33C651
tetradic
#5133C6 #C6335F #A8C633 #33C69B
square
#5133C6 #C6335F #A8C633 #33C69B
split-complementary
#5133C6 #C69B33 #5FC633
monochromatic
#291A65 #3D2695 #5133C6 #7860D6 #A191E3

Accessibility & contrast

On white

7.96
#5133C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5133C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5133C6
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5133C6#FFFFFF#000000##FFFFFF
##5133C61.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055CA
Deuteranopia (green-blind)
#004CC3
Tritanopia (blue-blind)
#005C7A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5133c6;
/* rgb */ color: rgb(81, 51, 198);
/* oklch */ color: oklch(45.7% 0.212 283.5);
Tailwind
colors: {
  custom: {
    50: '#8f6ed9',
    500: '#5133c6',
    950: '#000000',
  },
}
SCSS
$custom: #5133c6;
$custom-light: #8f6ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#5133c6",
  "rgb": {
    "r": 81,
    "g": 51,
    "b": 198
  },
  "hsl": {
    "h": 252.245,
    "s": 59.036,
    "l": 48.824
  },
  "oklch": {
    "l": 0.45715,
    "c": 0.21234,
    "h": 283.5
  },
  "luminance": 0.08194
}

Semantic roles & 50–950 ramp

primary
#5133C6
secondary
#BFCD87
accent
#E246C2
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5133C6

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

Preview Lab → · Contrast checker → · Palette generator →

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