#5232B6#5232B6

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

Color values

HEX#5232B6
RGBrgb(82, 50, 182)
HSLhsl(255, 57%, 45%)
HSVhsv(255, 73%, 71%)
CMYKcmyk(54.9%, 72.5%, 0%, 28.6%)
CIE-LABlab(32.81, 47.62, -64.81)
CIE-LCHlch(32.81, 80.42, 306.30°)
OKLaboklab(44.18% 0.0553 -0.1864)
OKLCHoklch(44.18% 0.194 286.5)
XYZxyz(13.0613, 7.4517, 44.9970)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5232B6 #96B632
analogous
#3254B6 #5232B6 #9432B6
triadic
#5232B6 #B65232 #32B652
tetradic
#5232B6 #B63254 #96B632 #32B694
square
#5232B6 #B63254 #96B632 #32B694
split-complementary
#5232B6 #B69432 #54B632
monochromatic
#271856 #3C2586 #5232B6 #7355D0 #9A85DD

Accessibility & contrast

On white

8.43
#5232B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5232B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5232B6
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5232B6#FFFFFF#000000##FFFFFF
##5232B61.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)
#0050BA
Deuteranopia (green-blind)
#0049B4
Tritanopia (blue-blind)
#275671
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5232b6;
/* rgb */ color: rgb(82, 50, 182);
/* oklch */ color: oklch(44.2% 0.194 286.5);
Tailwind
colors: {
  custom: {
    50: '#8d6dcd',
    500: '#5232b6',
    950: '#000000',
  },
}
SCSS
$custom: #5232b6;
$custom-light: #8d6dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#5232b6",
  "rgb": {
    "r": 82,
    "g": 50,
    "b": 182
  },
  "hsl": {
    "h": 254.545,
    "s": 56.897,
    "l": 45.49
  },
  "oklch": {
    "l": 0.4418,
    "c": 0.19447,
    "h": 286.5
  },
  "luminance": 0.07452
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5232B6

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

Preview Lab → · Contrast checker → · Palette generator →

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