#5331B5#5331B5

#5331B5 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.1% C 0.194 H 287.3°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#5331B5
RGBrgb(83, 49, 181)
HSLhsl(255, 57%, 45%)
HSVhsv(255, 73%, 71%)
CMYKcmyk(54.1%, 72.9%, 0%, 29%)
CIE-LABlab(32.64, 48.00, -64.50)
CIE-LCHlch(32.64, 80.40, 306.65°)
OKLaboklab(44.05% 0.0578 -0.1855)
OKLCHoklch(44.05% 0.194 287.3)
XYZxyz(13.0036, 7.3711, 44.4447)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5331B5 #93B531
analogous
#3151B5 #5331B5 #9531B5
triadic
#5331B5 #B55331 #31B553
tetradic
#5331B5 #B53151 #93B531 #31B595
square
#5331B5 #B53151 #93B531 #31B595
split-complementary
#5331B5 #B59531 #51B531
monochromatic
#271755 #3D2485 #5331B5 #7353D0 #9A83DD

Accessibility & contrast

On white

8.49
#5331B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5331B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5331B5
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5331B5#FFFFFF#000000##FFFFFF
##5331B51.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B9
Deuteranopia (green-blind)
#0049B3
Tritanopia (blue-blind)
#2A5570
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5331b5;
/* rgb */ color: rgb(83, 49, 181);
/* oklch */ color: oklch(44.1% 0.194 287.3);
Tailwind
colors: {
  custom: {
    50: '#8e6ccc',
    500: '#5331b5',
    950: '#000000',
  },
}
SCSS
$custom: #5331b5;
$custom-light: #8e6ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#5331b5",
  "rgb": {
    "r": 83,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 255.455,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44051,
    "c": 0.1943,
    "h": 287.3
  },
  "luminance": 0.07372
}

Semantic roles & 50–950 ramp

primary
#5331B5
secondary
#B3C77B
accent
#E147B9
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #5331B5

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

Preview Lab → · Contrast checker → · Palette generator →

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