#5232B7#5232B7

#5232B7 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.3% C 0.196 H 286.4°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#5232B7
RGBrgb(82, 50, 183)
HSLhsl(254, 57%, 46%)
HSVhsv(254, 73%, 72%)
CMYKcmyk(55.2%, 72.7%, 0%, 28.2%)
CIE-LABlab(32.90, 47.91, -65.25)
CIE-LCHlch(32.90, 80.95, 306.28°)
OKLaboklab(44.27% 0.0551 -0.1877)
OKLCHoklch(44.27% 0.196 286.4)
XYZxyz(13.1650, 7.4932, 45.5432)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5232B7 #97B732
analogous
#3254B7 #5232B7 #9432B7
triadic
#5232B7 #B75232 #32B752
tetradic
#5232B7 #B73254 #97B732 #32B794
square
#5232B7 #B73254 #97B732 #32B794
split-complementary
#5232B7 #B79432 #54B732
monochromatic
#271857 #3C2587 #5232B7 #7356D1 #9B86DE

Accessibility & contrast

On white

8.40
#5232B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5232B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5232B7
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5232B7#FFFFFF#000000##FFFFFF
##5232B71.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BB
Deuteranopia (green-blind)
#0049B4
Tritanopia (blue-blind)
#255671
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5232b7;
/* rgb */ color: rgb(82, 50, 183);
/* oklch */ color: oklch(44.3% 0.196 286.4);
Tailwind
colors: {
  custom: {
    50: '#8d6dce',
    500: '#5232b7',
    950: '#000000',
  },
}
SCSS
$custom: #5232b7;
$custom-light: #8d6dce;
$custom-dark: #000000;
JSON
{
  "hex": "#5232b7",
  "rgb": {
    "r": 82,
    "g": 50,
    "b": 183
  },
  "hsl": {
    "h": 254.436,
    "s": 57.082,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44271,
    "c": 0.19565,
    "h": 286.4
  },
  "luminance": 0.07494
}

Semantic roles & 50–950 ramp

primary
#5232B7
secondary
#B6C77D
accent
#E047BC
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #5232B7

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

Preview Lab → · Contrast checker → · Palette generator →

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