#5232CB#5232CB

#5232CB is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.2% C 0.219 H 283.3°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#5232CB
RGBrgb(82, 50, 203)
HSLhsl(253, 60%, 50%)
HSVhsv(253, 75%, 80%)
CMYKcmyk(59.6%, 75.4%, 0%, 20.4%)
CIE-LABlab(34.77, 53.71, -73.93)
CIE-LCHlch(34.77, 91.38, 306.00°)
OKLaboklab(46.16% 0.0503 -0.2131)
OKLCHoklch(46.16% 0.219 283.3)
XYZxyz(15.3964, 8.3858, 57.2956)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5232CB #ABCB32
analogous
#325FCB #5232CB #9F32CB
triadic
#5232CB #CB5232 #32CB52
tetradic
#5232CB #CB325F #ABCB32 #32CB9F
square
#5232CB #CB325F #ABCB32 #32CB9F
split-complementary
#5232CB #CB9F32 #5FCB32
monochromatic
#2A1A69 #3E269A #5232CB #7B62D8 #A493E4

Accessibility & contrast

On white

7.84
#5232CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5232CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5232CB
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5232CB#FFFFFF#000000##FFFFFF
##5232CB1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CF
Deuteranopia (green-blind)
#004DC8
Tritanopia (blue-blind)
#005E7D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5232cb;
/* rgb */ color: rgb(82, 50, 203);
/* oklch */ color: oklch(46.2% 0.219 283.3);
Tailwind
colors: {
  custom: {
    50: '#906edc',
    500: '#5232cb',
    950: '#000000',
  },
}
SCSS
$custom: #5232cb;
$custom-light: #906edc;
$custom-dark: #000000;
JSON
{
  "hex": "#5232cb",
  "rgb": {
    "r": 82,
    "g": 50,
    "b": 203
  },
  "hsl": {
    "h": 252.549,
    "s": 60.474,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46156,
    "c": 0.21896,
    "h": 283.3
  },
  "luminance": 0.08387
}

Semantic roles & 50–950 ramp

primary
#5232CB
secondary
#C1CF89
accent
#E444C2
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5232CB

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

Preview Lab → · Contrast checker → · Palette generator →

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