#5133CF#5133CF

#5133CF is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.6% C 0.223 H 282.2°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#5133CF
RGBrgb(81, 51, 207)
HSLhsl(252, 62%, 51%)
HSVhsv(252, 75%, 81%)
CMYKcmyk(60.9%, 75.4%, 0%, 18.8%)
CIE-LABlab(35.24, 54.25, -75.48)
CIE-LCHlch(35.24, 92.95, 305.71°)
OKLaboklab(46.58% 0.0473 -0.2177)
OKLCHoklch(46.58% 0.223 282.2)
XYZxyz(15.8361, 8.6209, 59.8489)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5133CF #B1CF33
analogous
#3363CF #5133CF #9F33CF
triadic
#5133CF #CF5133 #33CF51
tetradic
#5133CF #CF3363 #B1CF33 #33CF9F
square
#5133CF #CF3363 #B1CF33 #33CF9F
split-complementary
#5133CF #CF9F33 #63CF33
monochromatic
#2A1A6E #3D259F #5133CF #7B65DB #A696E6

Accessibility & contrast

On white

7.71
#5133CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5133CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5133CF
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5133CF#FFFFFF#000000##FFFFFF
##5133CF1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D3
Deuteranopia (green-blind)
#004DCC
Tritanopia (blue-blind)
#00607F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5133cf;
/* rgb */ color: rgb(81, 51, 207);
/* oklch */ color: oklch(46.6% 0.223 282.2);
Tailwind
colors: {
  custom: {
    50: '#916fdf',
    500: '#5133cf',
    950: '#000000',
  },
}
SCSS
$custom: #5133cf;
$custom-light: #916fdf;
$custom-dark: #000000;
JSON
{
  "hex": "#5133cf",
  "rgb": {
    "r": 81,
    "g": 51,
    "b": 207
  },
  "hsl": {
    "h": 251.538,
    "s": 61.905,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46581,
    "c": 0.22274,
    "h": 282.2
  },
  "luminance": 0.08622
}

Semantic roles & 50–950 ramp

primary
#5133CF
secondary
#C4D28C
accent
#E543C6
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5133CF

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

Preview Lab → · Contrast checker → · Palette generator →

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