#5236BA#5236BA

#5236BA is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.1% C 0.195 H 285.2°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#5236BA
RGBrgb(82, 54, 186)
HSLhsl(253, 55%, 47%)
HSVhsv(253, 71%, 73%)
CMYKcmyk(55.9%, 71%, 0%, 27.1%)
CIE-LABlab(33.93, 46.66, -65.34)
CIE-LCHlch(33.93, 80.29, 305.53°)
OKLaboklab(45.08% 0.0512 -0.188)
OKLCHoklch(45.08% 0.195 285.2)
XYZxyz(13.6591, 7.9766, 47.2647)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5236BA #9EBA36
analogous
#365CBA #5236BA #9436BA
triadic
#5236BA #BA5236 #36BA52
tetradic
#5236BA #BA365C #9EBA36 #36BA94
square
#5236BA #BA365C #9EBA36 #36BA94
split-complementary
#5236BA #BA9436 #5CBA36
monochromatic
#281A5B #3D288B #5236BA #765DD0 #9E8DDE

Accessibility & contrast

On white

8.09
#5236BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5236BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5236BA
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5236BA#FFFFFF#000000##FFFFFF
##5236BA1.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BE
Deuteranopia (green-blind)
#004CB7
Tritanopia (blue-blind)
#215974
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5236ba;
/* rgb */ color: rgb(82, 54, 186);
/* oklch */ color: oklch(45.1% 0.195 285.2);
Tailwind
colors: {
  custom: {
    50: '#8d70d0',
    500: '#5236ba',
    950: '#000000',
  },
}
SCSS
$custom: #5236ba;
$custom-light: #8d70d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5236ba",
  "rgb": {
    "r": 82,
    "g": 54,
    "b": 186
  },
  "hsl": {
    "h": 252.727,
    "s": 55,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45085,
    "c": 0.19485,
    "h": 285.2
  },
  "luminance": 0.07977
}

Semantic roles & 50–950 ramp

primary
#5236BA
secondary
#BAC884
accent
#DE49BF
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #5236BA

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

Preview Lab → · Contrast checker → · Palette generator →

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