#5236CD#5236CD

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

Color values

HEX#5236CD
RGBrgb(82, 54, 205)
HSLhsl(251, 60%, 51%)
HSVhsv(251, 74%, 80%)
CMYKcmyk(60%, 73.7%, 0%, 19.6%)
CIE-LABlab(35.67, 52.28, -73.61)
CIE-LCHlch(35.67, 90.29, 305.39°)
OKLaboklab(46.85% 0.0472 -0.2122)
OKLCHoklch(46.85% 0.217 282.5)
XYZxyz(15.8149, 8.8389, 58.6185)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5236CD #B1CD36
analogous
#3665CD #5236CD #9D36CD
triadic
#5236CD #CD5236 #36CD52
tetradic
#5236CD #CD3665 #B1CD36 #36CD9D
square
#5236CD #CD3665 #B1CD36 #36CD9D
split-complementary
#5236CD #CD9D36 #65CD36
monochromatic
#2A1B6D #3D279E #5236CD #7C67D9 #A698E5

Accessibility & contrast

On white

7.59
#5236CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5236CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5236CD
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5236CD#FFFFFF#000000##FFFFFF
##5236CD1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D1
Deuteranopia (green-blind)
#004FCA
Tritanopia (blue-blind)
#00607F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5236cd;
/* rgb */ color: rgb(82, 54, 205);
/* oklch */ color: oklch(46.8% 0.217 282.5);
Tailwind
colors: {
  custom: {
    50: '#9170de',
    500: '#5236cd',
    950: '#000000',
  },
}
SCSS
$custom: #5236cd;
$custom-light: #9170de;
$custom-dark: #000000;
JSON
{
  "hex": "#5236cd",
  "rgb": {
    "r": 82,
    "g": 54,
    "b": 205
  },
  "hsl": {
    "h": 251.126,
    "s": 60.159,
    "l": 50.784
  },
  "oklch": {
    "l": 0.46846,
    "c": 0.21738,
    "h": 282.5
  },
  "luminance": 0.0884
}

Semantic roles & 50–950 ramp

primary
#5236CD
secondary
#C4D18E
accent
#E344C6
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5236CD

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

Preview Lab → · Contrast checker → · Palette generator →

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