#5331B7#5331B7

#5331B7 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.2% C 0.197 H 287.0°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#5331B7
RGBrgb(83, 49, 183)
HSLhsl(255, 58%, 45%)
HSVhsv(255, 73%, 72%)
CMYKcmyk(54.6%, 73.2%, 0%, 28.2%)
CIE-LABlab(32.82, 48.57, -65.39)
CIE-LCHlch(32.82, 81.46, 306.60°)
OKLaboklab(44.23% 0.0574 -0.1881)
OKLCHoklch(44.23% 0.197 287)
XYZxyz(13.2103, 7.4538, 45.5332)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5331B7 #95B731
analogous
#3152B7 #5331B7 #9631B7
triadic
#5331B7 #B75331 #31B753
tetradic
#5331B7 #B73152 #95B731 #31B796
square
#5331B7 #B73152 #95B731 #31B796
split-complementary
#5331B7 #B79631 #52B731
monochromatic
#271756 #3D2487 #5331B7 #7454D1 #9B84DE

Accessibility & contrast

On white

8.43
#5331B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5331B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5331B7
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5331B7#FFFFFF#000000##FFFFFF
##5331B71.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BB
Deuteranopia (green-blind)
#0049B4
Tritanopia (blue-blind)
#285571
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5331b7;
/* rgb */ color: rgb(83, 49, 183);
/* oklch */ color: oklch(44.2% 0.197 287.0);
Tailwind
colors: {
  custom: {
    50: '#8e6dce',
    500: '#5331b7',
    950: '#000000',
  },
}
SCSS
$custom: #5331b7;
$custom-light: #8e6dce;
$custom-dark: #000000;
JSON
{
  "hex": "#5331b7",
  "rgb": {
    "r": 83,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 255.224,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.44234,
    "c": 0.19665,
    "h": 287
  },
  "luminance": 0.07455
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5331B7

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

Preview Lab → · Contrast checker → · Palette generator →

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