#5237D7#5237D7

#5237D7 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.9% C 0.228 H 281.2°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#5237D7
RGBrgb(82, 55, 215)
HSLhsl(250, 67%, 53%)
HSVhsv(250, 74%, 84%)
CMYKcmyk(61.9%, 74.4%, 0%, 15.7%)
CIE-LABlab(36.80, 54.71, -77.53)
CIE-LCHlch(36.80, 94.89, 305.21°)
OKLaboklab(47.93% 0.0442 -0.2237)
OKLCHoklch(47.93% 0.228 281.2)
XYZxyz(17.1077, 9.4312, 65.1957)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237D7 #BCD737
analogous
#376CD7 #5237D7 #A237D7
triadic
#5237D7 #D75237 #37D752
tetradic
#5237D7 #D7376C #BCD737 #37D7A2
square
#5237D7 #D7376C #BCD737 #37D7A2
split-complementary
#5237D7 #D7A237 #6CD737
monochromatic
#29197B #3A23AE #5237D7 #7E6AE1 #AA9DEB

Accessibility & contrast

On white

7.27
#5237D7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5237D7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5237D7
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5237D7#FFFFFF#000000##FFFFFF
##5237D71.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CDC
Deuteranopia (green-blind)
#0051D4
Tritanopia (blue-blind)
#006585
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5237d7;
/* rgb */ color: rgb(82, 55, 215);
/* oklch */ color: oklch(47.9% 0.228 281.2);
Tailwind
colors: {
  custom: {
    50: '#9271e5',
    500: '#5237d7',
    950: '#000000',
  },
}
SCSS
$custom: #5237d7;
$custom-light: #9271e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5237d7",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 215
  },
  "hsl": {
    "h": 250.125,
    "s": 66.667,
    "l": 52.941
  },
  "oklch": {
    "l": 0.47929,
    "c": 0.22799,
    "h": 281.2
  },
  "luminance": 0.09433
}

Semantic roles & 50–950 ramp

primary
#5237D7
secondary
#CCD792
accent
#EA3ECD
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #5237D7

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

Preview Lab → · Contrast checker → · Palette generator →

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