#5234CB#5234CB

#5234CB is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.4% C 0.217 H 283.0°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#5234CB
RGBrgb(82, 52, 203)
HSLhsl(252, 59%, 50%)
HSVhsv(252, 74%, 80%)
CMYKcmyk(59.6%, 74.4%, 0%, 20.4%)
CIE-LABlab(35.12, 52.71, -73.35)
CIE-LCHlch(35.12, 90.33, 305.70°)
OKLaboklab(46.4% 0.049 -0.2114)
OKLCHoklch(46.4% 0.217 283)
XYZxyz(15.4838, 8.5606, 57.3248)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5234CB #ADCB34
analogous
#3461CB #5234CB #9E34CB
triadic
#5234CB #CB5234 #34CB52
tetradic
#5234CB #CB3461 #ADCB34 #34CB9E
square
#5234CB #CB3461 #ADCB34 #34CB9E
split-complementary
#5234CB #CB9E34 #61CB34
monochromatic
#2B1B6A #3E289A #5234CB #7C65D7 #A595E4

Accessibility & contrast

On white

7.74
#5234CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5234CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5234CB
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5234CB#FFFFFF#000000##FFFFFF
##5234CB1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CF
Deuteranopia (green-blind)
#004DC8
Tritanopia (blue-blind)
#005F7D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5234cb;
/* rgb */ color: rgb(82, 52, 203);
/* oklch */ color: oklch(46.4% 0.217 283.0);
Tailwind
colors: {
  custom: {
    50: '#906fdc',
    500: '#5234cb',
    950: '#000000',
  },
}
SCSS
$custom: #5234cb;
$custom-light: #906fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#5234cb",
  "rgb": {
    "r": 82,
    "g": 52,
    "b": 203
  },
  "hsl": {
    "h": 251.921,
    "s": 59.216,
    "l": 50
  },
  "oklch": {
    "l": 0.46403,
    "c": 0.21703,
    "h": 283
  },
  "luminance": 0.08562
}

Semantic roles & 50–950 ramp

primary
#5234CB
secondary
#C2CF8C
accent
#E245C3
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5234CB

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

Preview Lab → · Contrast checker → · Palette generator →

#5234CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva