#5237BA#5237BA

#5237BA is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.2% C 0.194 H 285.1°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#5237BA
RGBrgb(82, 55, 186)
HSLhsl(252, 54%, 47%)
HSVhsv(252, 70%, 73%)
CMYKcmyk(55.9%, 70.4%, 0%, 27.1%)
CIE-LABlab(34.13, 46.12, -65.02)
CIE-LCHlch(34.13, 79.72, 305.35°)
OKLaboklab(45.22% 0.0504 -0.1871)
OKLCHoklch(45.22% 0.194 285.1)
XYZxyz(13.7061, 8.0706, 47.2804)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237BA #9FBA37
analogous
#375EBA #5237BA #9337BA
triadic
#5237BA #BA5237 #37BA52
tetradic
#5237BA #BA375E #9FBA37 #37BA93
square
#5237BA #BA375E #9FBA37 #37BA93
split-complementary
#5237BA #BA9337 #5EBA37
monochromatic
#281B5C #3D298B #5237BA #765FD0 #9E8EDE

Accessibility & contrast

On white

8.03
#5237BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5237BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5237BA
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5237BA#FFFFFF#000000##FFFFFF
##5237BA1.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BE
Deuteranopia (green-blind)
#004CB7
Tritanopia (blue-blind)
#215A74
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5237ba;
/* rgb */ color: rgb(82, 55, 186);
/* oklch */ color: oklch(45.2% 0.194 285.1);
Tailwind
colors: {
  custom: {
    50: '#8d70d0',
    500: '#5237ba',
    950: '#000000',
  },
}
SCSS
$custom: #5237ba;
$custom-light: #8d70d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5237ba",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 186
  },
  "hsl": {
    "h": 252.366,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.45224,
    "c": 0.19373,
    "h": 285.1
  },
  "luminance": 0.08071
}

Semantic roles & 50–950 ramp

primary
#5237BA
secondary
#BAC885
accent
#DE4ABF
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #5237BA

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

Preview Lab → · Contrast checker → · Palette generator →

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