#5237AC#5237AC

#5237AC is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.0% C 0.176 H 287.4°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#5237AC
RGBrgb(82, 55, 172)
HSLhsl(254, 52%, 45%)
HSVhsv(254, 68%, 67%)
CMYKcmyk(52.3%, 68%, 0%, 32.5%)
CIE-LABlab(32.93, 41.94, -58.67)
CIE-LCHlch(32.93, 72.12, 305.56°)
OKLaboklab(43.99% 0.0528 -0.1684)
OKLCHoklch(43.99% 0.177 287.4)
XYZxyz(12.2901, 7.5042, 39.8226)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237AC #91AC37
analogous
#3757AC #5237AC #8D37AC
triadic
#5237AC #AC5237 #37AC52
tetradic
#5237AC #AC3757 #91AC37 #37AC8D
square
#5237AC #AC3757 #91AC37 #37AC8D
split-complementary
#5237AC #AC8D37 #57AC37
monochromatic
#26194F #3C287E #5237AC #7157C9 #9885D8

Accessibility & contrast

On white

8.40
#5237AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5237AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5237AC
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5237AC#FFFFFF#000000##FFFFFF
##5237AC1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B0
Deuteranopia (green-blind)
#004AAA
Tritanopia (blue-blind)
#30556D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5237ac;
/* rgb */ color: rgb(82, 55, 172);
/* oklch */ color: oklch(44.0% 0.176 287.4);
Tailwind
colors: {
  custom: {
    50: '#8b70c6',
    500: '#5237ac',
    950: '#000000',
  },
}
SCSS
$custom: #5237ac;
$custom-light: #8b70c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5237ac",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 172
  },
  "hsl": {
    "h": 253.846,
    "s": 51.542,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43993,
    "c": 0.1765,
    "h": 287.4
  },
  "luminance": 0.07505
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5237AC

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

Preview Lab → · Contrast checker → · Palette generator →

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