#5237A3#5237A3

#5237A3 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.2% C 0.165 H 289.1°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#5237A3
RGBrgb(82, 55, 163)
HSLhsl(255, 50%, 43%)
HSVhsv(255, 66%, 64%)
CMYKcmyk(49.7%, 66.3%, 0%, 36.1%)
CIE-LABlab(32.19, 39.26, -54.47)
CIE-LCHlch(32.19, 67.14, 305.78°)
OKLaboklab(43.23% 0.054 -0.1561)
OKLCHoklch(43.23% 0.165 289.1)
XYZxyz(11.4548, 7.1701, 35.4236)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237A3 #88A337
analogous
#3752A3 #5237A3 #8837A3
triadic
#5237A3 #A35237 #37A352
tetradic
#5237A3 #A33752 #88A337 #37A388
square
#5237A3 #A33752 #88A337 #37A388
split-complementary
#5237A3 #A38837 #52A337
monochromatic
#241847 #3B2875 #5237A3 #6F52C5 #9580D4

Accessibility & contrast

On white

8.63
#5237A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5237A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5237A3
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5237A3#FFFFFF#000000##FFFFFF
##5237A31.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA6
Deuteranopia (green-blind)
#0049A1
Tritanopia (blue-blind)
#365168
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5237a3;
/* rgb */ color: rgb(82, 55, 163);
/* oklch */ color: oklch(43.2% 0.165 289.1);
Tailwind
colors: {
  custom: {
    50: '#8a6fbf',
    500: '#5237a3',
    950: '#000000',
  },
}
SCSS
$custom: #5237a3;
$custom-light: #8a6fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#5237a3",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 163
  },
  "hsl": {
    "h": 255,
    "s": 49.541,
    "l": 42.745
  },
  "oklch": {
    "l": 0.43233,
    "c": 0.16516,
    "h": 289.1
  },
  "luminance": 0.07171
}

Semantic roles & 50–950 ramp

primary
#5237A3
secondary
#ACBE78
accent
#D94FB6
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #5237A3

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

Preview Lab → · Contrast checker → · Palette generator →

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