#5237AF#5237AF

#5237AF is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.3% C 0.180 H 286.9°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#5237AF
RGBrgb(82, 55, 175)
HSLhsl(254, 52%, 45%)
HSVhsv(254, 69%, 69%)
CMYKcmyk(53.1%, 68.6%, 0%, 31.4%)
CIE-LABlab(33.18, 42.84, -60.05)
CIE-LCHlch(33.18, 73.76, 305.50°)
OKLaboklab(44.25% 0.0523 -0.1725)
OKLCHoklch(44.25% 0.18 286.9)
XYZxyz(12.5814, 7.6207, 41.3571)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237AF #94AF37
analogous
#3758AF #5237AF #8E37AF
triadic
#5237AF #AF5237 #37AF52
tetradic
#5237AF #AF3758 #94AF37 #37AF8E
square
#5237AF #AF3758 #94AF37 #37AF8E
split-complementary
#5237AF #AF8E37 #58AF37
monochromatic
#261A52 #3C2880 #5237AF #7259CB #9A87D9

Accessibility & contrast

On white

8.32
#5237AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5237AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5237AF
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5237AF#FFFFFF#000000##FFFFFF
##5237AF1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#004BAD
Tritanopia (blue-blind)
#2D566E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5237af;
/* rgb */ color: rgb(82, 55, 175);
/* oklch */ color: oklch(44.3% 0.180 286.9);
Tailwind
colors: {
  custom: {
    50: '#8c70c8',
    500: '#5237af',
    950: '#000000',
  },
}
SCSS
$custom: #5237af;
$custom-light: #8c70c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5237af",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 175
  },
  "hsl": {
    "h": 253.5,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44252,
    "c": 0.18023,
    "h": 286.9
  },
  "luminance": 0.07621
}

Semantic roles & 50–950 ramp

primary
#5237AF
secondary
#B4C37F
accent
#DC4CBB
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5237AF

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

Preview Lab → · Contrast checker → · Palette generator →

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