#5233C5#5233C5

#5233C5 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.7% C 0.211 H 284.0°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#5233C5
RGBrgb(82, 51, 197)
HSLhsl(253, 59%, 49%)
HSVhsv(253, 74%, 77%)
CMYKcmyk(58.4%, 74.1%, 0%, 22.7%)
CIE-LABlab(34.38, 51.47, -71.07)
CIE-LCHlch(34.38, 87.75, 305.91°)
OKLaboklab(45.71% 0.0511 -0.2048)
OKLCHoklch(45.71% 0.211 284)
XYZxyz(14.7385, 8.1918, 53.6170)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5233C5 #A6C533
analogous
#335DC5 #5233C5 #9B33C5
triadic
#5233C5 #C55233 #33C552
tetradic
#5233C5 #C5335D #A6C533 #33C59B
square
#5233C5 #C5335D #A6C533 #33C59B
split-complementary
#5233C5 #C59B33 #5DC533
monochromatic
#2A1A64 #3E2694 #5233C5 #795FD6 #A290E2

Accessibility & contrast

On white

7.96
#5233C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5233C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5233C5
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5233C5#FFFFFF#000000##FFFFFF
##5233C51.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5233c5;
/* rgb */ color: rgb(82, 51, 197);
/* oklch */ color: oklch(45.7% 0.211 284.0);
Tailwind
colors: {
  custom: {
    50: '#8f6ed8',
    500: '#5233c5',
    950: '#000000',
  },
}
SCSS
$custom: #5233c5;
$custom-light: #8f6ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#5233c5",
  "rgb": {
    "r": 82,
    "g": 51,
    "b": 197
  },
  "hsl": {
    "h": 252.74,
    "s": 58.871,
    "l": 48.627
  },
  "oklch": {
    "l": 0.45707,
    "c": 0.21106,
    "h": 284
  },
  "luminance": 0.08193
}

Semantic roles & 50–950 ramp

primary
#5233C5
secondary
#BECD87
accent
#E246C1
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5233C5

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

Preview Lab → · Contrast checker → · Palette generator →

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