#5236BC#5236BC

#5236BC is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.3% C 0.197 H 284.9°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#5236BC
RGBrgb(82, 54, 188)
HSLhsl(253, 55%, 47%)
HSVhsv(253, 71%, 74%)
CMYKcmyk(56.4%, 71.3%, 0%, 26.3%)
CIE-LABlab(34.11, 47.26, -66.23)
CIE-LCHlch(34.11, 81.36, 305.51°)
OKLaboklab(45.27% 0.0508 -0.1906)
OKLCHoklch(45.27% 0.197 284.9)
XYZxyz(13.8732, 8.0622, 48.3923)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5236BC #A0BC36
analogous
#365DBC #5236BC #9536BC
triadic
#5236BC #BC5236 #36BC52
tetradic
#5236BC #BC365D #A0BC36 #36BC95
square
#5236BC #BC365D #A0BC36 #36BC95
split-complementary
#5236BC #BC9536 #5DBC36
monochromatic
#291B5D #3D288C #5236BC #765ED1 #9F8EDF

Accessibility & contrast

On white

8.04
#5236BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5236BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5236BC
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5236BC#FFFFFF#000000##FFFFFF
##5236BC1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C0
Deuteranopia (green-blind)
#004CB9
Tritanopia (blue-blind)
#1E5A75
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5236bc;
/* rgb */ color: rgb(82, 54, 188);
/* oklch */ color: oklch(45.3% 0.197 284.9);
Tailwind
colors: {
  custom: {
    50: '#8e70d1',
    500: '#5236bc',
    950: '#000000',
  },
}
SCSS
$custom: #5236bc;
$custom-light: #8e70d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5236bc",
  "rgb": {
    "r": 82,
    "g": 54,
    "b": 188
  },
  "hsl": {
    "h": 252.537,
    "s": 55.372,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45266,
    "c": 0.19726,
    "h": 284.9
  },
  "luminance": 0.08063
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5236BC

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

Preview Lab → · Contrast checker → · Palette generator →

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