#5232B5#5232B5

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

Color values

HEX#5232B5
RGBrgb(82, 50, 181)
HSLhsl(255, 57%, 45%)
HSVhsv(255, 72%, 71%)
CMYKcmyk(54.7%, 72.4%, 0%, 29%)
CIE-LABlab(32.72, 47.32, -64.36)
CIE-LCHlch(32.72, 79.89, 306.32°)
OKLaboklab(44.09% 0.0556 -0.1851)
OKLCHoklch(44.09% 0.193 286.7)
XYZxyz(12.9583, 7.4105, 44.4547)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5232B5 #95B532
analogous
#3254B5 #5232B5 #9332B5
triadic
#5232B5 #B55232 #32B552
tetradic
#5232B5 #B53254 #95B532 #32B593
square
#5232B5 #B53254 #95B532 #32B593
split-complementary
#5232B5 #B59332 #54B532
monochromatic
#271855 #3C2585 #5232B5 #7354D0 #9A84DD

Accessibility & contrast

On white

8.46
#5232B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5232B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5232B5
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5232B5#FFFFFF#000000##FFFFFF
##5232B51.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5232b5;
/* rgb */ color: rgb(82, 50, 181);
/* oklch */ color: oklch(44.1% 0.193 286.7);
Tailwind
colors: {
  custom: {
    50: '#8d6dcc',
    500: '#5232b5',
    950: '#000000',
  },
}
SCSS
$custom: #5232b5;
$custom-light: #8d6dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#5232b5",
  "rgb": {
    "r": 82,
    "g": 50,
    "b": 181
  },
  "hsl": {
    "h": 254.656,
    "s": 56.71,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44088,
    "c": 0.19328,
    "h": 286.7
  },
  "luminance": 0.07411
}

Semantic roles & 50–950 ramp

primary
#5232B5
secondary
#B4C77C
accent
#E048BB
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #5232B5

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

Preview Lab → · Contrast checker → · Palette generator →

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