#5233C1#5233C1

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

Color values

HEX#5233C1
RGBrgb(82, 51, 193)
HSLhsl(253, 58%, 48%)
HSVhsv(253, 74%, 76%)
CMYKcmyk(57.5%, 73.6%, 0%, 24.3%)
CIE-LABlab(34.01, 50.30, -69.34)
CIE-LCHlch(34.01, 85.67, 305.96°)
OKLaboklab(45.33% 0.0521 -0.1997)
OKLCHoklch(45.33% 0.206 284.6)
XYZxyz(14.2862, 8.0109, 51.2352)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5233C1 #A2C133
analogous
#335BC1 #5233C1 #9933C1
triadic
#5233C1 #C15233 #33C152
tetradic
#5233C1 #C1335B #A2C133 #33C199
square
#5233C1 #C1335B #A2C133 #33C199
split-complementary
#5233C1 #C19933 #5BC133
monochromatic
#291960 #3D2691 #5233C1 #775DD4 #A08DE1

Accessibility & contrast

On white

8.07
#5233C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5233C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5233C1
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5233C1#FFFFFF#000000##FFFFFF
##5233C11.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.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: #5233c1;
/* rgb */ color: rgb(82, 51, 193);
/* oklch */ color: oklch(45.3% 0.206 284.6);
Tailwind
colors: {
  custom: {
    50: '#8f6ed5',
    500: '#5233c1',
    950: '#000000',
  },
}
SCSS
$custom: #5233c1;
$custom-light: #8f6ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#5233c1",
  "rgb": {
    "r": 82,
    "g": 51,
    "b": 193
  },
  "hsl": {
    "h": 253.099,
    "s": 58.197,
    "l": 47.843
  },
  "oklch": {
    "l": 0.4533,
    "c": 0.20639,
    "h": 284.6
  },
  "luminance": 0.08012
}

Semantic roles & 50–950 ramp

primary
#5233C1
secondary
#BCCB84
accent
#E146C0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5233C1

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

Preview Lab → · Contrast checker → · Palette generator →

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