#5233C2#5233C2

#5233C2 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.4% C 0.208 H 284.5°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#5233C2
RGBrgb(82, 51, 194)
HSLhsl(253, 58%, 48%)
HSVhsv(253, 74%, 76%)
CMYKcmyk(57.7%, 73.7%, 0%, 23.9%)
CIE-LABlab(34.10, 50.60, -69.78)
CIE-LCHlch(34.10, 86.19, 305.95°)
OKLaboklab(45.42% 0.0518 -0.201)
OKLCHoklch(45.42% 0.208 284.5)
XYZxyz(14.3981, 8.0556, 51.8247)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5233C2 #A3C233
analogous
#335BC2 #5233C2 #9933C2
triadic
#5233C2 #C25233 #33C252
tetradic
#5233C2 #C2335B #A3C233 #33C299
square
#5233C2 #C2335B #A3C233 #33C299
split-complementary
#5233C2 #C29933 #5BC233
monochromatic
#291A61 #3E2692 #5233C2 #775ED5 #A08EE1

Accessibility & contrast

On white

8.04
#5233C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5233C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5233C2
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5233C2#FFFFFF#000000##FFFFFF
##5233C21.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5233c2;
/* rgb */ color: rgb(82, 51, 194);
/* oklch */ color: oklch(45.4% 0.208 284.5);
Tailwind
colors: {
  custom: {
    50: '#8f6ed6',
    500: '#5233c2',
    950: '#000000',
  },
}
SCSS
$custom: #5233c2;
$custom-light: #8f6ed6;
$custom-dark: #000000;
JSON
{
  "hex": "#5233c2",
  "rgb": {
    "r": 82,
    "g": 51,
    "b": 194
  },
  "hsl": {
    "h": 253.007,
    "s": 58.367,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45423,
    "c": 0.20756,
    "h": 284.5
  },
  "luminance": 0.08057
}

Semantic roles & 50–950 ramp

primary
#5233C2
secondary
#BCCC85
accent
#E246C0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5233C2

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

Preview Lab → · Contrast checker → · Palette generator →

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