#5133B8#5133B8

#5133B8 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.4% C 0.196 H 285.6°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#5133B8
RGBrgb(81, 51, 184)
HSLhsl(254, 57%, 46%)
HSVhsv(254, 72%, 72%)
CMYKcmyk(56%, 72.3%, 0%, 27.8%)
CIE-LABlab(33.09, 47.53, -65.55)
CIE-LCHlch(33.09, 80.97, 305.94°)
OKLaboklab(44.4% 0.0527 -0.1886)
OKLCHoklch(44.4% 0.196 285.6)
XYZxyz(13.2263, 7.5769, 46.1037)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5133B8 #9AB833
analogous
#3357B8 #5133B8 #9333B8
triadic
#5133B8 #B85133 #33B851
tetradic
#5133B8 #B83357 #9AB833 #33B893
square
#5133B8 #B83357 #9AB833 #33B893
split-complementary
#5133B8 #B89333 #57B833
monochromatic
#271858 #3C2688 #5133B8 #7358D1 #9B88DE

Accessibility & contrast

On white

8.35
#5133B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5133B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5133B8
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5133B8#FFFFFF#000000##FFFFFF
##5133B81.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#004AB5
Tritanopia (blue-blind)
#215772
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5133b8;
/* rgb */ color: rgb(81, 51, 184);
/* oklch */ color: oklch(44.4% 0.196 285.6);
Tailwind
colors: {
  custom: {
    50: '#8d6ece',
    500: '#5133b8',
    950: '#000000',
  },
}
SCSS
$custom: #5133b8;
$custom-light: #8d6ece;
$custom-dark: #000000;
JSON
{
  "hex": "#5133b8",
  "rgb": {
    "r": 81,
    "g": 51,
    "b": 184
  },
  "hsl": {
    "h": 253.534,
    "s": 56.596,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44404,
    "c": 0.19585,
    "h": 285.6
  },
  "luminance": 0.07578
}

Semantic roles & 50–950 ramp

primary
#5133B8
secondary
#B7C87F
accent
#E048BE
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #5133B8

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

Preview Lab → · Contrast checker → · Palette generator →

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