#5236BB#5236BB

#5236BB is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.2% C 0.196 H 285.1°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#5236BB
RGBrgb(82, 54, 187)
HSLhsl(253, 55%, 47%)
HSVhsv(253, 71%, 73%)
CMYKcmyk(56.1%, 71.1%, 0%, 26.7%)
CIE-LABlab(34.02, 46.96, -65.79)
CIE-LCHlch(34.02, 80.83, 305.52°)
OKLaboklab(45.18% 0.051 -0.1893)
OKLCHoklch(45.18% 0.196 285.1)
XYZxyz(13.7658, 8.0192, 47.8266)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5236BB #9FBB36
analogous
#365CBB #5236BB #9536BB
triadic
#5236BB #BB5236 #36BB52
tetradic
#5236BB #BB365C #9FBB36 #36BB95
square
#5236BB #BB365C #9FBB36 #36BB95
split-complementary
#5236BB #BB9536 #5CBB36
monochromatic
#281B5C #3D288C #5236BB #765ED0 #9E8DDE

Accessibility & contrast

On white

8.06
#5236BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5236BB
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5236BB#FFFFFF#000000##FFFFFF
##5236BB1.008.062.608.06
#FFFFFF8.061.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BF
Deuteranopia (green-blind)
#004CB8
Tritanopia (blue-blind)
#205A75
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5236bb;
/* rgb */ color: rgb(82, 54, 187);
/* oklch */ color: oklch(45.2% 0.196 285.1);
Tailwind
colors: {
  custom: {
    50: '#8e70d1',
    500: '#5236bb',
    950: '#000000',
  },
}
SCSS
$custom: #5236bb;
$custom-light: #8e70d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5236bb",
  "rgb": {
    "r": 82,
    "g": 54,
    "b": 187
  },
  "hsl": {
    "h": 252.632,
    "s": 55.187,
    "l": 47.255
  },
  "oklch": {
    "l": 0.45175,
    "c": 0.19605,
    "h": 285.1
  },
  "luminance": 0.0802
}

Semantic roles & 50–950 ramp

primary
#5236BB
secondary
#BAC984
accent
#DF49BF
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #5236BB

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

Preview Lab → · Contrast checker → · Palette generator →

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