#5236CC#5236CC

#5236CC is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.8% C 0.216 H 282.7°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#5236CC
RGBrgb(82, 54, 204)
HSLhsl(251, 60%, 51%)
HSVhsv(251, 74%, 80%)
CMYKcmyk(59.8%, 73.5%, 0%, 20%)
CIE-LABlab(35.58, 51.99, -73.18)
CIE-LCHlch(35.58, 89.77, 305.39°)
OKLaboklab(46.75% 0.0474 -0.211)
OKLCHoklch(46.75% 0.216 282.7)
XYZxyz(15.6945, 8.7907, 57.9848)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5236CC #B0CC36
analogous
#3665CC #5236CC #9D36CC
triadic
#5236CC #CC5236 #36CC52
tetradic
#5236CC #CC3665 #B0CC36 #36CC9D
square
#5236CC #CC3665 #B0CC36 #36CC9D
split-complementary
#5236CC #CC9D36 #65CC36
monochromatic
#2B1B6C #3E289D #5236CC #7C67D8 #A698E5

Accessibility & contrast

On white

7.61
#5236CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5236CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5236CC
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5236CC#FFFFFF#000000##FFFFFF
##5236CC1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D0
Deuteranopia (green-blind)
#004EC9
Tritanopia (blue-blind)
#00607E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5236cc;
/* rgb */ color: rgb(82, 54, 204);
/* oklch */ color: oklch(46.8% 0.216 282.7);
Tailwind
colors: {
  custom: {
    50: '#9070dd',
    500: '#5236cc',
    950: '#000000',
  },
}
SCSS
$custom: #5236cc;
$custom-light: #9070dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5236cc",
  "rgb": {
    "r": 82,
    "g": 54,
    "b": 204
  },
  "hsl": {
    "h": 251.2,
    "s": 59.524,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46752,
    "c": 0.21622,
    "h": 282.7
  },
  "luminance": 0.08792
}

Semantic roles & 50–950 ramp

primary
#5236CC
secondary
#C4D08E
accent
#E345C5
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5236CC

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

Preview Lab → · Contrast checker → · Palette generator →

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