#5232C2#5232C2

#5232C2 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.3% C 0.209 H 284.6°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#5232C2
RGBrgb(82, 50, 194)
HSLhsl(253, 59%, 48%)
HSVhsv(253, 74%, 76%)
CMYKcmyk(57.7%, 74.2%, 0%, 23.9%)
CIE-LABlab(33.92, 51.10, -70.07)
CIE-LCHlch(33.92, 86.73, 306.10°)
OKLaboklab(45.3% 0.0526 -0.2018)
OKLCHoklch(45.3% 0.209 284.6)
XYZxyz(14.3549, 7.9692, 51.8103)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5232C2 #A2C232
analogous
#325AC2 #5232C2 #9A32C2
triadic
#5232C2 #C25232 #32C252
tetradic
#5232C2 #C2325A #A2C232 #32C29A
square
#5232C2 #C2325A #A2C232 #32C29A
split-complementary
#5232C2 #C29A32 #5AC232
monochromatic
#291961 #3D2591 #5232C2 #775CD5 #A08DE2

Accessibility & contrast

On white

8.10
#5232C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5232C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5232C2
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5232C2#FFFFFF#000000##FFFFFF
##5232C21.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C6
Deuteranopia (green-blind)
#004BBF
Tritanopia (blue-blind)
#145A78
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5232c2;
/* rgb */ color: rgb(82, 50, 194);
/* oklch */ color: oklch(45.3% 0.209 284.6);
Tailwind
colors: {
  custom: {
    50: '#8f6ed6',
    500: '#5232c2',
    950: '#000000',
  },
}
SCSS
$custom: #5232c2;
$custom-light: #8f6ed6;
$custom-dark: #000000;
JSON
{
  "hex": "#5232c2",
  "rgb": {
    "r": 82,
    "g": 50,
    "b": 194
  },
  "hsl": {
    "h": 253.333,
    "s": 59.016,
    "l": 47.843
  },
  "oklch": {
    "l": 0.45297,
    "c": 0.20857,
    "h": 284.6
  },
  "luminance": 0.0797
}

Semantic roles & 50–950 ramp

primary
#5232C2
secondary
#BCCC84
accent
#E246BF
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5232C2

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

Preview Lab → · Contrast checker → · Palette generator →

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