#5237A8#5237A8

#5237A8 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.7% C 0.171 H 288.1°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#5237A8
RGBrgb(82, 55, 168)
HSLhsl(254, 51%, 44%)
HSVhsv(254, 67%, 66%)
CMYKcmyk(51.2%, 67.3%, 0%, 34.1%)
CIE-LABlab(32.60, 40.75, -56.81)
CIE-LCHlch(32.60, 69.91, 305.65°)
OKLaboklab(43.65% 0.0534 -0.163)
OKLCHoklch(43.65% 0.171 288.1)
XYZxyz(11.9117, 7.3528, 37.8298)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237A8 #8DA837
analogous
#3754A8 #5237A8 #8A37A8
triadic
#5237A8 #A85237 #37A852
tetradic
#5237A8 #A83754 #8DA837 #37A88A
square
#5237A8 #A83754 #8DA837 #37A88A
split-complementary
#5237A8 #A88A37 #54A837
monochromatic
#25194C #3B287A #5237A8 #7055C7 #9783D6

Accessibility & contrast

On white

8.50
#5237A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5237A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5237A8
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5237A8#FFFFFF#000000##FFFFFF
##5237A81.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAB
Deuteranopia (green-blind)
#004AA6
Tritanopia (blue-blind)
#33536B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5237a8;
/* rgb */ color: rgb(82, 55, 168);
/* oklch */ color: oklch(43.7% 0.171 288.1);
Tailwind
colors: {
  custom: {
    50: '#8b70c3',
    500: '#5237a8',
    950: '#000000',
  },
}
SCSS
$custom: #5237a8;
$custom-light: #8b70c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5237a8",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 168
  },
  "hsl": {
    "h": 254.336,
    "s": 50.673,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43652,
    "c": 0.17149,
    "h": 288.1
  },
  "luminance": 0.07353
}

Semantic roles & 50–950 ramp

primary
#5237A8
secondary
#AFC07B
accent
#DA4EB9
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #5237A8

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

Preview Lab → · Contrast checker → · Palette generator →

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