#5236BD#5236BD

#5236BD is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.4% C 0.198 H 284.8°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#5236BD
RGBrgb(82, 54, 189)
HSLhsl(252, 56%, 48%)
HSVhsv(252, 71%, 74%)
CMYKcmyk(56.6%, 71.4%, 0%, 25.9%)
CIE-LABlab(34.20, 47.55, -66.67)
CIE-LCHlch(34.20, 81.89, 305.50°)
OKLaboklab(45.36% 0.0506 -0.1919)
OKLCHoklch(45.36% 0.198 284.8)
XYZxyz(13.9814, 8.1055, 48.9620)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5236BD #A1BD36
analogous
#365EBD #5236BD #9536BD
triadic
#5236BD #BD5236 #36BD52
tetradic
#5236BD #BD365E #A1BD36 #36BD95
square
#5236BD #BD365E #A1BD36 #36BD95
split-complementary
#5236BD #BD9536 #5EBD36
monochromatic
#291B5E #3D288D #5236BD #775FD1 #9F8FDF

Accessibility & contrast

On white

8.01
#5236BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5236BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5236BD
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5236BD#FFFFFF#000000##FFFFFF
##5236BD1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C1
Deuteranopia (green-blind)
#004CBA
Tritanopia (blue-blind)
#1D5A76
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5236bd;
/* rgb */ color: rgb(82, 54, 189);
/* oklch */ color: oklch(45.4% 0.198 284.8);
Tailwind
colors: {
  custom: {
    50: '#8e70d2',
    500: '#5236bd',
    950: '#000000',
  },
}
SCSS
$custom: #5236bd;
$custom-light: #8e70d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5236bd",
  "rgb": {
    "r": 82,
    "g": 54,
    "b": 189
  },
  "hsl": {
    "h": 252.444,
    "s": 55.556,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45357,
    "c": 0.19846,
    "h": 284.8
  },
  "luminance": 0.08106
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5236BD

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

Preview Lab → · Contrast checker → · Palette generator →

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