#5237AB#5237AB

#5237AB is a dark, vivid violet. Relative luminance 0.075; OKLCH L 43.9% C 0.175 H 287.6°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#5237AB
RGBrgb(82, 55, 171)
HSLhsl(254, 51%, 44%)
HSVhsv(254, 68%, 67%)
CMYKcmyk(52%, 67.8%, 0%, 32.9%)
CIE-LABlab(32.84, 41.64, -58.21)
CIE-LCHlch(32.84, 71.57, 305.58°)
OKLaboklab(43.91% 0.0529 -0.1671)
OKLCHoklch(43.91% 0.175 287.6)
XYZxyz(12.1944, 7.4659, 39.3187)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237AB #90AB37
analogous
#3756AB #5237AB #8C37AB
triadic
#5237AB #AB5237 #37AB52
tetradic
#5237AB #AB3756 #90AB37 #37AB8C
square
#5237AB #AB3756 #90AB37 #37AB8C
split-complementary
#5237AB #AB8C37 #56AB37
monochromatic
#26194E #3C287D #5237AB #7156C9 #9885D8

Accessibility & contrast

On white

8.42
#5237AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5237AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5237AB
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5237AB#FFFFFF#000000##FFFFFF
##5237AB1.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#004AA9
Tritanopia (blue-blind)
#31546C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5237ab;
/* rgb */ color: rgb(82, 55, 171);
/* oklch */ color: oklch(43.9% 0.175 287.6);
Tailwind
colors: {
  custom: {
    50: '#8b70c5',
    500: '#5237ab',
    950: '#000000',
  },
}
SCSS
$custom: #5237ab;
$custom-light: #8b70c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5237ab",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 171
  },
  "hsl": {
    "h": 253.966,
    "s": 51.327,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43908,
    "c": 0.17525,
    "h": 287.6
  },
  "luminance": 0.07466
}

Semantic roles & 50–950 ramp

primary
#5237AB
secondary
#B1C17C
accent
#DB4DBA
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5237AB

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

Preview Lab → · Contrast checker → · Palette generator →

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