#5331B8#5331B8

#5331B8 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.3% C 0.198 H 286.8°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#5331B8
RGBrgb(83, 49, 184)
HSLhsl(255, 58%, 46%)
HSVhsv(255, 73%, 72%)
CMYKcmyk(54.9%, 73.4%, 0%, 27.8%)
CIE-LABlab(32.91, 48.86, -65.83)
CIE-LCHlch(32.91, 81.98, 306.58°)
OKLaboklab(44.33% 0.0572 -0.1894)
OKLCHoklch(44.33% 0.198 286.8)
XYZxyz(13.3147, 7.4956, 46.0833)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5331B8 #96B831
analogous
#3152B8 #5331B8 #9631B8
triadic
#5331B8 #B85331 #31B853
tetradic
#5331B8 #B83152 #96B831 #31B896
square
#5331B8 #B83152 #96B831 #31B896
split-complementary
#5331B8 #B89631 #52B831
monochromatic
#271757 #3D2488 #5331B8 #7455D2 #9B85DE

Accessibility & contrast

On white

8.40
#5331B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5331B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5331B8
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5331B8#FFFFFF#000000##FFFFFF
##5331B81.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5331b8;
/* rgb */ color: rgb(83, 49, 184);
/* oklch */ color: oklch(44.3% 0.198 286.8);
Tailwind
colors: {
  custom: {
    50: '#8e6dce',
    500: '#5331b8',
    950: '#000000',
  },
}
SCSS
$custom: #5331b8;
$custom-light: #8e6dce;
$custom-dark: #000000;
JSON
{
  "hex": "#5331b8",
  "rgb": {
    "r": 83,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 255.111,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44326,
    "c": 0.19782,
    "h": 286.8
  },
  "luminance": 0.07496
}

Semantic roles & 50–950 ramp

primary
#5331B8
secondary
#B5C87D
accent
#E147BA
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #5331B8

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

Preview Lab → · Contrast checker → · Palette generator →

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