#5237BE#5237BE

#5237BE is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.6% C 0.199 H 284.5°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#5237BE
RGBrgb(82, 55, 190)
HSLhsl(252, 55%, 48%)
HSVhsv(252, 71%, 75%)
CMYKcmyk(56.8%, 71.1%, 0%, 25.5%)
CIE-LABlab(34.48, 47.31, -66.80)
CIE-LCHlch(34.48, 81.86, 305.31°)
OKLaboklab(45.59% 0.0496 -0.1923)
OKLCHoklch(45.59% 0.199 284.5)
XYZxyz(14.1373, 8.2431, 49.5513)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237BE #A3BE37
analogous
#375FBE #5237BE #9537BE
triadic
#5237BE #BE5237 #37BE52
tetradic
#5237BE #BE375F #A3BE37 #37BE95
square
#5237BE #BE375F #A3BE37 #37BE95
split-complementary
#5237BE #BE9537 #5FBE37
monochromatic
#291C5F #3E298F #5237BE #7761D1 #A090DF

Accessibility & contrast

On white

7.93
#5237BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5237BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5237BE
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5237BE#FFFFFF#000000##FFFFFF
##5237BE1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C2
Deuteranopia (green-blind)
#004DBB
Tritanopia (blue-blind)
#1B5B77
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5237be;
/* rgb */ color: rgb(82, 55, 190);
/* oklch */ color: oklch(45.6% 0.199 284.5);
Tailwind
colors: {
  custom: {
    50: '#8e70d3',
    500: '#5237be',
    950: '#000000',
  },
}
SCSS
$custom: #5237be;
$custom-light: #8e70d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5237be",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 190
  },
  "hsl": {
    "h": 252,
    "s": 55.102,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45586,
    "c": 0.19857,
    "h": 284.5
  },
  "luminance": 0.08244
}

Semantic roles & 50–950 ramp

primary
#5237BE
secondary
#BCCA87
accent
#DE49C1
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5237BE

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

Preview Lab → · Contrast checker → · Palette generator →

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