#5232CC#5232CC

#5232CC is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.3% C 0.220 H 283.2°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#5232CC
RGBrgb(82, 50, 204)
HSLhsl(252, 61%, 50%)
HSVhsv(252, 75%, 80%)
CMYKcmyk(59.8%, 75.5%, 0%, 20%)
CIE-LABlab(34.87, 54.00, -74.35)
CIE-LCHlch(34.87, 91.89, 305.99°)
OKLaboklab(46.25% 0.0501 -0.2143)
OKLCHoklch(46.25% 0.22 283.2)
XYZxyz(15.5160, 8.4336, 57.9253)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5232CC #ACCC32
analogous
#325FCC #5232CC #9F32CC
triadic
#5232CC #CC5232 #32CC52
tetradic
#5232CC #CC325F #ACCC32 #32CC9F
square
#5232CC #CC325F #ACCC32 #32CC9F
split-complementary
#5232CC #CC9F32 #5FCC32
monochromatic
#2A1A6A #3E269B #5232CC #7B63D9 #A594E5

Accessibility & contrast

On white

7.82
#5232CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5232CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5232CC
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5232CC#FFFFFF#000000##FFFFFF
##5232CC1.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057D0
Deuteranopia (green-blind)
#004DC9
Tritanopia (blue-blind)
#005E7D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5232cc;
/* rgb */ color: rgb(82, 50, 204);
/* oklch */ color: oklch(46.3% 0.220 283.2);
Tailwind
colors: {
  custom: {
    50: '#916edd',
    500: '#5232cc',
    950: '#000000',
  },
}
SCSS
$custom: #5232cc;
$custom-light: #916edd;
$custom-dark: #000000;
JSON
{
  "hex": "#5232cc",
  "rgb": {
    "r": 82,
    "g": 50,
    "b": 204
  },
  "hsl": {
    "h": 252.468,
    "s": 60.63,
    "l": 49.804
  },
  "oklch": {
    "l": 0.46253,
    "c": 0.2201,
    "h": 283.2
  },
  "luminance": 0.08435
}

Semantic roles & 50–950 ramp

primary
#5232CC
secondary
#C1D08A
accent
#E444C3
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5232CC

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

Preview Lab → · Contrast checker → · Palette generator →

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