#5236BE#5236BE

#5236BE is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.4% C 0.200 H 284.6°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#5236BE
RGBrgb(82, 54, 190)
HSLhsl(252, 56%, 48%)
HSVhsv(252, 72%, 75%)
CMYKcmyk(56.8%, 71.6%, 0%, 25.5%)
CIE-LABlab(34.29, 47.85, -67.11)
CIE-LCHlch(34.29, 82.42, 305.49°)
OKLaboklab(45.45% 0.0504 -0.1932)
OKLCHoklch(45.45% 0.2 284.6)
XYZxyz(14.0903, 8.1490, 49.5357)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5236BE #A2BE36
analogous
#365EBE #5236BE #9636BE
triadic
#5236BE #BE5236 #36BE52
tetradic
#5236BE #BE365E #A2BE36 #36BE96
square
#5236BE #BE365E #A2BE36 #36BE96
split-complementary
#5236BE #BE9636 #5EBE36
monochromatic
#291B5F #3D288E #5236BE #7760D2 #A08FDF

Accessibility & contrast

On white

7.98
#5236BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5236BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5236BE
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5236BE#FFFFFF#000000##FFFFFF
##5236BE1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C2
Deuteranopia (green-blind)
#004CBB
Tritanopia (blue-blind)
#1B5B76
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5236be;
/* rgb */ color: rgb(82, 54, 190);
/* oklch */ color: oklch(45.4% 0.200 284.6);
Tailwind
colors: {
  custom: {
    50: '#8e70d3',
    500: '#5236be',
    950: '#000000',
  },
}
SCSS
$custom: #5236be;
$custom-light: #8e70d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5236be",
  "rgb": {
    "r": 82,
    "g": 54,
    "b": 190
  },
  "hsl": {
    "h": 252.353,
    "s": 55.738,
    "l": 47.843
  },
  "oklch": {
    "l": 0.45449,
    "c": 0.19966,
    "h": 284.6
  },
  "luminance": 0.0815
}

Semantic roles & 50–950 ramp

primary
#5236BE
secondary
#BCCA86
accent
#DF49C0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5236BE

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

Preview Lab → · Contrast checker → · Palette generator →

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