#5232C1#5232C1

#5232C1 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.2% C 0.207 H 284.8°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#5232C1
RGBrgb(82, 50, 193)
HSLhsl(253, 59%, 48%)
HSVhsv(253, 74%, 76%)
CMYKcmyk(57.5%, 74.1%, 0%, 24.3%)
CIE-LABlab(33.82, 50.81, -69.64)
CIE-LCHlch(33.82, 86.21, 306.12°)
OKLaboklab(45.2% 0.0528 -0.2006)
OKLCHoklch(45.2% 0.207 284.8)
XYZxyz(14.2430, 7.9244, 51.2208)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5232C1 #A1C132
analogous
#3259C1 #5232C1 #9A32C1
triadic
#5232C1 #C15232 #32C152
tetradic
#5232C1 #C13259 #A1C132 #32C19A
square
#5232C1 #C13259 #A1C132 #32C19A
split-complementary
#5232C1 #C19A32 #59C132
monochromatic
#291960 #3D2590 #5232C1 #775CD5 #9F8CE1

Accessibility & contrast

On white

8.12
#5232C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5232C1
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5232C1#FFFFFF#000000##FFFFFF
##5232C11.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C5
Deuteranopia (green-blind)
#004BBE
Tritanopia (blue-blind)
#165A77
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5232c1;
/* rgb */ color: rgb(82, 50, 193);
/* oklch */ color: oklch(45.2% 0.207 284.8);
Tailwind
colors: {
  custom: {
    50: '#8f6ed5',
    500: '#5232c1',
    950: '#000000',
  },
}
SCSS
$custom: #5232c1;
$custom-light: #8f6ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#5232c1",
  "rgb": {
    "r": 82,
    "g": 50,
    "b": 193
  },
  "hsl": {
    "h": 253.427,
    "s": 58.848,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45202,
    "c": 0.20741,
    "h": 284.8
  },
  "luminance": 0.07925
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5232C1

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

Preview Lab → · Contrast checker → · Palette generator →

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