#5237D0#5237D0

#5237D0 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.3% C 0.220 H 282.0°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#5237D0
RGBrgb(82, 55, 208)
HSLhsl(251, 62%, 52%)
HSVhsv(251, 74%, 82%)
CMYKcmyk(60.6%, 73.6%, 0%, 18.4%)
CIE-LABlab(36.14, 52.65, -74.59)
CIE-LCHlch(36.14, 91.30, 305.22°)
OKLaboklab(47.26% 0.0458 -0.2151)
OKLCHoklch(47.26% 0.22 282)
XYZxyz(16.2275, 9.0791, 60.5596)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237D0 #B5D037
analogous
#3769D0 #5237D0 #9F37D0
triadic
#5237D0 #D05237 #37D052
tetradic
#5237D0 #D03769 #B5D037 #37D09F
square
#5237D0 #D03769 #B5D037 #37D09F
split-complementary
#5237D0 #D09F37 #69D037
monochromatic
#2A1B72 #3C26A3 #5237D0 #7D69DC #A89AE7

Accessibility & contrast

On white

7.46
#5237D0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5237D0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5237D0
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5237D0#FFFFFF#000000##FFFFFF
##5237D01.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD4
Deuteranopia (green-blind)
#0050CD
Tritanopia (blue-blind)
#006281
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5237d0;
/* rgb */ color: rgb(82, 55, 208);
/* oklch */ color: oklch(47.3% 0.220 282.0);
Tailwind
colors: {
  custom: {
    50: '#9171e0',
    500: '#5237d0',
    950: '#000000',
  },
}
SCSS
$custom: #5237d0;
$custom-light: #9171e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5237d0",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 208
  },
  "hsl": {
    "h": 250.588,
    "s": 61.943,
    "l": 51.569
  },
  "oklch": {
    "l": 0.47259,
    "c": 0.21989,
    "h": 282
  },
  "luminance": 0.0908
}

Semantic roles & 50–950 ramp

primary
#5237D0
secondary
#C7D390
accent
#E543C8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5237D0

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

Preview Lab → · Contrast checker → · Palette generator →

#5237D0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva