#5236D7#5236D7

#5236D7 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.8% C 0.229 H 281.3°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#5236D7
RGBrgb(82, 54, 215)
HSLhsl(250, 67%, 53%)
HSVhsv(250, 75%, 84%)
CMYKcmyk(61.9%, 74.9%, 0%, 15.7%)
CIE-LABlab(36.63, 55.21, -77.82)
CIE-LCHlch(36.63, 95.42, 305.35°)
OKLaboklab(47.81% 0.0448 -0.2245)
OKLCHoklch(47.81% 0.229 281.3)
XYZxyz(17.0607, 9.3372, 65.1800)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5236D7 #BBD736
analogous
#366AD7 #5236D7 #A336D7
triadic
#5236D7 #D75236 #36D752
tetradic
#5236D7 #D7366A #BBD736 #36D7A3
square
#5236D7 #D7366A #BBD736 #36D7A3
split-complementary
#5236D7 #D7A336 #6AD736
monochromatic
#29187A #3B22AD #5236D7 #7E69E1 #AA9CEB

Accessibility & contrast

On white

7.32
#5236D7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5236D7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5236D7
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5236D7#FFFFFF#000000##FFFFFF
##5236D71.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CDC
Deuteranopia (green-blind)
#0050D4
Tritanopia (blue-blind)
#006484
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5236d7;
/* rgb */ color: rgb(82, 54, 215);
/* oklch */ color: oklch(47.8% 0.229 281.3);
Tailwind
colors: {
  custom: {
    50: '#9271e5',
    500: '#5236d7',
    950: '#000000',
  },
}
SCSS
$custom: #5236d7;
$custom-light: #9271e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5236d7",
  "rgb": {
    "r": 82,
    "g": 54,
    "b": 215
  },
  "hsl": {
    "h": 250.435,
    "s": 66.805,
    "l": 52.745
  },
  "oklch": {
    "l": 0.47805,
    "c": 0.22893,
    "h": 281.3
  },
  "luminance": 0.09338
}

Semantic roles & 50–950 ramp

primary
#5236D7
secondary
#CBD792
accent
#EA3ECC
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #5236D7

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

Preview Lab → · Contrast checker → · Palette generator →

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