#5133D6#5133D6

#5133D6 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.3% C 0.231 H 281.4°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#5133D6
RGBrgb(81, 51, 214)
HSLhsl(251, 67%, 52%)
HSVhsv(251, 76%, 84%)
CMYKcmyk(62.1%, 76.2%, 0%, 16.1%)
CIE-LABlab(35.93, 56.28, -78.40)
CIE-LCHlch(35.93, 96.51, 305.67°)
OKLaboklab(47.27% 0.0455 -0.2262)
OKLCHoklch(47.27% 0.231 281.4)
XYZxyz(16.7109, 8.9708, 64.4562)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5133D6 #B8D633
analogous
#3367D6 #5133D6 #A333D6
triadic
#5133D6 #D65133 #33D651
tetradic
#5133D6 #D63367 #B8D633 #33D6A3
square
#5133D6 #D63367 #B8D633 #33D6A3
split-complementary
#5133D6 #D6A333 #67D633
monochromatic
#291877 #3B22AA #5133D6 #7C66E0 #A899EA

Accessibility & contrast

On white

7.52
#5133D6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5133D6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5133D6
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5133D6#FFFFFF#000000##FFFFFF
##5133D61.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ADB
Deuteranopia (green-blind)
#004FD3
Tritanopia (blue-blind)
#006383
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5133d6;
/* rgb */ color: rgb(81, 51, 214);
/* oklch */ color: oklch(47.3% 0.231 281.4);
Tailwind
colors: {
  custom: {
    50: '#926fe4',
    500: '#5133d6',
    950: '#000000',
  },
}
SCSS
$custom: #5133d6;
$custom-light: #926fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#5133d6",
  "rgb": {
    "r": 81,
    "g": 51,
    "b": 214
  },
  "hsl": {
    "h": 251.043,
    "s": 66.531,
    "l": 51.961
  },
  "oklch": {
    "l": 0.47265,
    "c": 0.23072,
    "h": 281.4
  },
  "luminance": 0.08972
}

Semantic roles & 50–950 ramp

primary
#5133D6
secondary
#C9D68F
accent
#E93ECA
background
#F9F6FE
surface
#F2ECFC
border
#CCC7D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #5133D6

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

Preview Lab → · Contrast checker → · Palette generator →

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