#5232B1#5232B1

#5232B1 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.189 H 287.4°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#5232B1
RGBrgb(82, 50, 177)
HSLhsl(255, 56%, 45%)
HSVhsv(255, 72%, 69%)
CMYKcmyk(53.7%, 71.8%, 0%, 30.6%)
CIE-LABlab(32.37, 46.16, -62.57)
CIE-LCHlch(32.37, 77.75, 306.41°)
OKLaboklab(43.73% 0.0564 -0.1799)
OKLCHoklch(43.73% 0.189 287.4)
XYZxyz(12.5537, 7.2487, 42.3241)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5232B1 #91B132
analogous
#3252B1 #5232B1 #9232B1
triadic
#5232B1 #B15232 #32B152
tetradic
#5232B1 #B13252 #91B132 #32B192
square
#5232B1 #B13252 #91B132 #32B192
split-complementary
#5232B1 #B19232 #52B132
monochromatic
#261752 #3C2581 #5232B1 #7152CE #9882DC

Accessibility & contrast

On white

8.57
#5232B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5232B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5232B1
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5232B1#FFFFFF#000000##FFFFFF
##5232B11.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#0049AF
Tritanopia (blue-blind)
#2C546E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5232b1;
/* rgb */ color: rgb(82, 50, 177);
/* oklch */ color: oklch(43.7% 0.189 287.4);
Tailwind
colors: {
  custom: {
    50: '#8c6dc9',
    500: '#5232b1',
    950: '#000000',
  },
}
SCSS
$custom: #5232b1;
$custom-light: #8c6dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#5232b1",
  "rgb": {
    "r": 82,
    "g": 50,
    "b": 177
  },
  "hsl": {
    "h": 255.118,
    "s": 55.947,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43725,
    "c": 0.18851,
    "h": 287.4
  },
  "luminance": 0.07249
}

Semantic roles & 50–950 ramp

primary
#5232B1
secondary
#B2C57A
accent
#DF49B9
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5232B1

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

Preview Lab → · Contrast checker → · Palette generator →

#5232B1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva