#5236D3#5236D3

#5236D3 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.4% C 0.224 H 281.8°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#5236D3
RGBrgb(82, 54, 211)
HSLhsl(251, 64%, 52%)
HSVhsv(251, 74%, 83%)
CMYKcmyk(61.1%, 74.4%, 0%, 17.3%)
CIE-LABlab(36.24, 54.04, -76.15)
CIE-LCHlch(36.24, 93.38, 305.36°)
OKLaboklab(47.42% 0.0458 -0.2196)
OKLCHoklch(47.42% 0.224 281.8)
XYZxyz(16.5530, 9.1341, 62.5062)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5236D3 #B7D336
analogous
#3668D3 #5236D3 #A136D3
triadic
#5236D3 #D35236 #36D352
tetradic
#5236D3 #D33668 #B7D336 #36D3A1
square
#5236D3 #D33668 #B7D336 #36D3A1
split-complementary
#5236D3 #D3A136 #68D336
monochromatic
#2A1A75 #3C25A7 #5236D3 #7D68DE #A89AE9

Accessibility & contrast

On white

7.43
#5236D3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5236D3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5236D3
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5236D3#FFFFFF#000000##FFFFFF
##5236D31.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD8
Deuteranopia (green-blind)
#0050D0
Tritanopia (blue-blind)
#006382
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5236d3;
/* rgb */ color: rgb(82, 54, 211);
/* oklch */ color: oklch(47.4% 0.224 281.8);
Tailwind
colors: {
  custom: {
    50: '#9271e2',
    500: '#5236d3',
    950: '#000000',
  },
}
SCSS
$custom: #5236d3;
$custom-light: #9271e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5236d3",
  "rgb": {
    "r": 82,
    "g": 54,
    "b": 211
  },
  "hsl": {
    "h": 250.701,
    "s": 64.082,
    "l": 51.961
  },
  "oklch": {
    "l": 0.47419,
    "c": 0.22433,
    "h": 281.8
  },
  "luminance": 0.09135
}

Semantic roles & 50–950 ramp

primary
#5236D3
secondary
#C9D590
accent
#E741C9
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #5236D3

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

Preview Lab → · Contrast checker → · Palette generator →

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