#5236CB#5236CB

#5236CB is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.7% C 0.215 H 282.8°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#5236CB
RGBrgb(82, 54, 203)
HSLhsl(251, 59%, 50%)
HSVhsv(251, 73%, 80%)
CMYKcmyk(59.6%, 73.4%, 0%, 20.4%)
CIE-LABlab(35.48, 51.69, -72.76)
CIE-LCHlch(35.48, 89.25, 305.39°)
OKLaboklab(46.66% 0.0476 -0.2097)
OKLCHoklch(46.66% 0.215 282.8)
XYZxyz(15.5750, 8.7429, 57.3552)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5236CB #AFCB36
analogous
#3665CB #5236CB #9C36CB
triadic
#5236CB #CB5236 #36CB52
tetradic
#5236CB #CB3665 #AFCB36 #36CB9C
square
#5236CB #CB3665 #AFCB36 #36CB9C
split-complementary
#5236CB #CB9C36 #65CB36
monochromatic
#2B1C6B #3E289C #5236CB #7C67D8 #A697E4

Accessibility & contrast

On white

7.64
#5236CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5236CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5236CB
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5236CB#FFFFFF#000000##FFFFFF
##5236CB1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CF
Deuteranopia (green-blind)
#004EC8
Tritanopia (blue-blind)
#00607E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5236cb;
/* rgb */ color: rgb(82, 54, 203);
/* oklch */ color: oklch(46.7% 0.215 282.8);
Tailwind
colors: {
  custom: {
    50: '#9070dc',
    500: '#5236cb',
    950: '#000000',
  },
}
SCSS
$custom: #5236cb;
$custom-light: #9070dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5236cb",
  "rgb": {
    "r": 82,
    "g": 54,
    "b": 203
  },
  "hsl": {
    "h": 251.275,
    "s": 58.893,
    "l": 50.392
  },
  "oklch": {
    "l": 0.46657,
    "c": 0.21505,
    "h": 282.8
  },
  "luminance": 0.08744
}

Semantic roles & 50–950 ramp

primary
#5236CB
secondary
#C3D08D
accent
#E246C5
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5236CB

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

Preview Lab → · Contrast checker → · Palette generator →

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