#5232C5#5232C5

#5232C5 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.6% C 0.212 H 284.2°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#5232C5
RGBrgb(82, 50, 197)
HSLhsl(253, 60%, 48%)
HSVhsv(253, 75%, 77%)
CMYKcmyk(58.4%, 74.6%, 0%, 22.7%)
CIE-LABlab(34.20, 51.97, -71.37)
CIE-LCHlch(34.20, 88.29, 306.06°)
OKLaboklab(45.58% 0.0518 -0.2056)
OKLCHoklch(45.58% 0.212 284.2)
XYZxyz(14.6952, 8.1053, 53.6026)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5232C5 #A5C532
analogous
#325BC5 #5232C5 #9B32C5
triadic
#5232C5 #C55232 #32C552
tetradic
#5232C5 #C5325B #A5C532 #32C59B
square
#5232C5 #C5325B #A5C532 #32C59B
split-complementary
#5232C5 #C59B32 #5BC532
monochromatic
#291963 #3E2694 #5232C5 #785ED6 #A18FE3

Accessibility & contrast

On white

8.01
#5232C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5232C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5232C5
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5232C5#FFFFFF#000000##FFFFFF
##5232C51.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C9
Deuteranopia (green-blind)
#004CC2
Tritanopia (blue-blind)
#0C5B79
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5232c5;
/* rgb */ color: rgb(82, 50, 197);
/* oklch */ color: oklch(45.6% 0.212 284.2);
Tailwind
colors: {
  custom: {
    50: '#8f6ed8',
    500: '#5232c5',
    950: '#000000',
  },
}
SCSS
$custom: #5232c5;
$custom-light: #8f6ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#5232c5",
  "rgb": {
    "r": 82,
    "g": 50,
    "b": 197
  },
  "hsl": {
    "h": 253.061,
    "s": 59.514,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45581,
    "c": 0.21205,
    "h": 284.2
  },
  "luminance": 0.08106
}

Semantic roles & 50–950 ramp

primary
#5232C5
secondary
#BECD86
accent
#E345C0
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5232C5

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

Preview Lab → · Contrast checker → · Palette generator →

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