#5236BF#5236BF

#5236BF is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.5% C 0.201 H 284.5°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#5236BF
RGBrgb(82, 54, 191)
HSLhsl(252, 56%, 48%)
HSVhsv(252, 72%, 75%)
CMYKcmyk(57.1%, 71.7%, 0%, 25.1%)
CIE-LABlab(34.38, 48.15, -67.55)
CIE-LCHlch(34.38, 82.95, 305.48°)
OKLaboklab(45.54% 0.0502 -0.1945)
OKLCHoklch(45.54% 0.201 284.5)
XYZxyz(14.1999, 8.1929, 50.1132)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5236BF #A3BF36
analogous
#365EBF #5236BF #9636BF
triadic
#5236BF #BF5236 #36BF52
tetradic
#5236BF #BF365E #A3BF36 #36BF96
square
#5236BF #BF365E #A3BF36 #36BF96
split-complementary
#5236BF #BF9636 #5EBF36
monochromatic
#291B60 #3E298F #5236BF #7760D2 #A090E0

Accessibility & contrast

On white

7.96
#5236BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5236BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5236BF
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5236BF#FFFFFF#000000##FFFFFF
##5236BF1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C3
Deuteranopia (green-blind)
#004CBC
Tritanopia (blue-blind)
#195B77
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5236bf;
/* rgb */ color: rgb(82, 54, 191);
/* oklch */ color: oklch(45.5% 0.201 284.5);
Tailwind
colors: {
  custom: {
    50: '#8e70d3',
    500: '#5236bf',
    950: '#000000',
  },
}
SCSS
$custom: #5236bf;
$custom-light: #8e70d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5236bf",
  "rgb": {
    "r": 82,
    "g": 54,
    "b": 191
  },
  "hsl": {
    "h": 252.263,
    "s": 55.918,
    "l": 48.039
  },
  "oklch": {
    "l": 0.4554,
    "c": 0.20086,
    "h": 284.5
  },
  "luminance": 0.08194
}

Semantic roles & 50–950 ramp

primary
#5236BF
secondary
#BCCA87
accent
#DF49C0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5236BF

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

Preview Lab → · Contrast checker → · Palette generator →

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