#5237CB#5237CB

#5237CB is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.8% C 0.214 H 282.7°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#5237CB
RGBrgb(82, 55, 203)
HSLhsl(251, 59%, 51%)
HSVhsv(251, 73%, 80%)
CMYKcmyk(59.6%, 72.9%, 0%, 20.4%)
CIE-LABlab(35.67, 51.18, -72.45)
CIE-LCHlch(35.67, 88.71, 305.23°)
OKLaboklab(46.79% 0.0469 -0.2088)
OKLCHoklch(46.79% 0.214 282.7)
XYZxyz(15.6220, 8.8370, 57.3708)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237CB #B0CB37
analogous
#3766CB #5237CB #9C37CB
triadic
#5237CB #CB5237 #37CB52
tetradic
#5237CB #CB3766 #B0CB37 #37CB9C
square
#5237CB #CB3766 #B0CB37 #37CB9C
split-complementary
#5237CB #CB9C37 #66CB37
monochromatic
#2B1C6C #3E299C #5237CB #7C68D8 #A698E4

Accessibility & contrast

On white

7.59
#5237CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5237CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5237CB
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5237CB#FFFFFF#000000##FFFFFF
##5237CB1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CF
Deuteranopia (green-blind)
#004FC8
Tritanopia (blue-blind)
#00607E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5237cb;
/* rgb */ color: rgb(82, 55, 203);
/* oklch */ color: oklch(46.8% 0.214 282.7);
Tailwind
colors: {
  custom: {
    50: '#9071dc',
    500: '#5237cb',
    950: '#000000',
  },
}
SCSS
$custom: #5237cb;
$custom-light: #9071dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5237cb",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 203
  },
  "hsl": {
    "h": 250.946,
    "s": 58.73,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46787,
    "c": 0.21403,
    "h": 282.7
  },
  "luminance": 0.08838
}

Semantic roles & 50–950 ramp

primary
#5237CB
secondary
#C4D08E
accent
#E246C5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5237CB

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

Preview Lab → · Contrast checker → · Palette generator →

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