#5331B9#5331B9

#5331B9 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.4% C 0.199 H 286.6°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#5331B9
RGBrgb(83, 49, 185)
HSLhsl(255, 58%, 46%)
HSVhsv(255, 74%, 73%)
CMYKcmyk(55.1%, 73.5%, 0%, 27.5%)
CIE-LABlab(33.00, 49.15, -66.28)
CIE-LCHlch(33.00, 82.51, 306.56°)
OKLaboklab(44.42% 0.0569 -0.1907)
OKLCHoklch(44.42% 0.199 286.6)
XYZxyz(13.4199, 7.5377, 46.6373)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5331B9 #97B931
analogous
#3153B9 #5331B9 #9731B9
triadic
#5331B9 #B95331 #31B953
tetradic
#5331B9 #B93153 #97B931 #31B997
square
#5331B9 #B93153 #97B931 #31B997
split-complementary
#5331B9 #B99731 #53B931
monochromatic
#281758 #3D2489 #5331B9 #7455D2 #9C86DF

Accessibility & contrast

On white

8.37
#5331B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5331B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5331B9
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5331B9#FFFFFF#000000##FFFFFF
##5331B91.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BD
Deuteranopia (green-blind)
#004AB6
Tritanopia (blue-blind)
#265672
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5331b9;
/* rgb */ color: rgb(83, 49, 185);
/* oklch */ color: oklch(44.4% 0.199 286.6);
Tailwind
colors: {
  custom: {
    50: '#8e6dcf',
    500: '#5331b9',
    950: '#000000',
  },
}
SCSS
$custom: #5331b9;
$custom-light: #8e6dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#5331b9",
  "rgb": {
    "r": 83,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 255,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44419,
    "c": 0.19899,
    "h": 286.6
  },
  "luminance": 0.07538
}

Semantic roles & 50–950 ramp

primary
#5331B9
secondary
#B6C87D
accent
#E146BB
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #5331B9

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

Preview Lab → · Contrast checker → · Palette generator →

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