#5236AD#5236AD

#5236AD is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.9% C 0.179 H 287.4°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#5236AD
RGBrgb(82, 54, 173)
HSLhsl(254, 52%, 45%)
HSVhsv(254, 69%, 68%)
CMYKcmyk(52.6%, 68.8%, 0%, 32.2%)
CIE-LABlab(32.81, 42.80, -59.46)
CIE-LCHlch(32.81, 73.26, 305.74°)
OKLaboklab(43.93% 0.0536 -0.1708)
OKLCHoklch(43.93% 0.179 287.4)
XYZxyz(12.3394, 7.4487, 40.3146)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5236AD #91AD36
analogous
#3655AD #5236AD #8E36AD
triadic
#5236AD #AD5236 #36AD52
tetradic
#5236AD #AD3655 #91AD36 #36AD8E
square
#5236AD #AD3655 #91AD36 #36AD8E
split-complementary
#5236AD #AD8E36 #55AD36
monochromatic
#261950 #3C277E #5236AD #7156CA #9885D9

Accessibility & contrast

On white

8.43
#5236AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5236AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5236AD
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5236AD#FFFFFF#000000##FFFFFF
##5236AD1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B1
Deuteranopia (green-blind)
#004AAB
Tritanopia (blue-blind)
#2F546D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5236ad;
/* rgb */ color: rgb(82, 54, 173);
/* oklch */ color: oklch(43.9% 0.179 287.4);
Tailwind
colors: {
  custom: {
    50: '#8b6fc6',
    500: '#5236ad',
    950: '#000000',
  },
}
SCSS
$custom: #5236ad;
$custom-light: #8b6fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5236ad",
  "rgb": {
    "r": 82,
    "g": 54,
    "b": 173
  },
  "hsl": {
    "h": 254.118,
    "s": 52.423,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43933,
    "c": 0.17896,
    "h": 287.4
  },
  "luminance": 0.07449
}

Semantic roles & 50–950 ramp

primary
#5236AD
secondary
#B2C27C
accent
#DC4CBA
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5236AD

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

Preview Lab → · Contrast checker → · Palette generator →

#5236AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva