#5232B4#5232B4

#5232B4 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.0% C 0.192 H 286.9°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#5232B4
RGBrgb(82, 50, 180)
HSLhsl(255, 57%, 45%)
HSVhsv(255, 72%, 71%)
CMYKcmyk(54.4%, 72.2%, 0%, 29.4%)
CIE-LABlab(32.63, 47.03, -63.92)
CIE-LCHlch(32.63, 79.36, 306.35°)
OKLaboklab(44% 0.0558 -0.1838)
OKLCHoklch(44% 0.192 286.9)
XYZxyz(12.8560, 7.3697, 43.9162)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5232B4 #94B432
analogous
#3253B4 #5232B4 #9332B4
triadic
#5232B4 #B45232 #32B452
tetradic
#5232B4 #B43253 #94B432 #32B493
square
#5232B4 #B43253 #94B432 #32B493
split-complementary
#5232B4 #B49332 #53B432
monochromatic
#261754 #3C2584 #5232B4 #7254CF #9A84DD

Accessibility & contrast

On white

8.49
#5232B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5232B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5232B4
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5232B4#FFFFFF#000000##FFFFFF
##5232B41.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)
#0050B8
Deuteranopia (green-blind)
#0049B2
Tritanopia (blue-blind)
#295570
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5232b4;
/* rgb */ color: rgb(82, 50, 180);
/* oklch */ color: oklch(44.0% 0.192 286.9);
Tailwind
colors: {
  custom: {
    50: '#8d6dcc',
    500: '#5232b4',
    950: '#000000',
  },
}
SCSS
$custom: #5232b4;
$custom-light: #8d6dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#5232b4",
  "rgb": {
    "r": 82,
    "g": 50,
    "b": 180
  },
  "hsl": {
    "h": 254.769,
    "s": 56.522,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43997,
    "c": 0.19208,
    "h": 286.9
  },
  "luminance": 0.0737
}

Semantic roles & 50–950 ramp

primary
#5232B4
secondary
#B4C67C
accent
#E048BA
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5232B4

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

Preview Lab → · Contrast checker → · Palette generator →

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