#5232B2#5232B2

#5232B2 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.8% C 0.190 H 287.2°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#5232B2
RGBrgb(82, 50, 178)
HSLhsl(255, 56%, 45%)
HSVhsv(255, 72%, 70%)
CMYKcmyk(53.9%, 71.9%, 0%, 30.2%)
CIE-LABlab(32.46, 46.45, -63.02)
CIE-LCHlch(32.46, 78.29, 306.39°)
OKLaboklab(43.82% 0.0562 -0.1812)
OKLCHoklch(43.82% 0.19 287.2)
XYZxyz(12.6538, 7.2887, 42.8510)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5232B2 #92B232
analogous
#3252B2 #5232B2 #9232B2
triadic
#5232B2 #B25232 #32B252
tetradic
#5232B2 #B23252 #92B232 #32B292
square
#5232B2 #B23252 #92B232 #32B292
split-complementary
#5232B2 #B29232 #52B232
monochromatic
#261752 #3C2582 #5232B2 #7253CF #9982DC

Accessibility & contrast

On white

8.54
#5232B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5232B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5232B2
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5232B2#FFFFFF#000000##FFFFFF
##5232B21.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#0049B0
Tritanopia (blue-blind)
#2B546F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5232b2;
/* rgb */ color: rgb(82, 50, 178);
/* oklch */ color: oklch(43.8% 0.190 287.2);
Tailwind
colors: {
  custom: {
    50: '#8c6dca',
    500: '#5232b2',
    950: '#000000',
  },
}
SCSS
$custom: #5232b2;
$custom-light: #8c6dca;
$custom-dark: #000000;
JSON
{
  "hex": "#5232b2",
  "rgb": {
    "r": 82,
    "g": 50,
    "b": 178
  },
  "hsl": {
    "h": 255,
    "s": 56.14,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43815,
    "c": 0.1897,
    "h": 287.2
  },
  "luminance": 0.07289
}

Semantic roles & 50–950 ramp

primary
#5232B2
secondary
#B3C57B
accent
#DF48BA
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5232B2

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

Preview Lab → · Contrast checker → · Palette generator →

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