#5236AA#5236AA

#5236AA is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.7% C 0.175 H 288.0°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#5236AA
RGBrgb(82, 54, 170)
HSLhsl(254, 52%, 44%)
HSVhsv(254, 68%, 67%)
CMYKcmyk(51.8%, 68.2%, 0%, 33.3%)
CIE-LABlab(32.56, 41.91, -58.08)
CIE-LCHlch(32.56, 71.62, 305.81°)
OKLaboklab(43.67% 0.054 -0.1667)
OKLCHoklch(43.67% 0.175 288)
XYZxyz(12.0524, 7.3339, 38.8029)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5236AA #8EAA36
analogous
#3654AA #5236AA #8C36AA
triadic
#5236AA #AA5236 #36AA52
tetradic
#5236AA #AA3654 #8EAA36 #36AA8C
square
#5236AA #AA3654 #8EAA36 #36AA8C
split-complementary
#5236AA #AA8C36 #54AA36
monochromatic
#25184D #3C277C #5236AA #7054C9 #9783D8

Accessibility & contrast

On white

8.51
#5236AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5236AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5236AA#FFFFFF#000000##FFFFFF
##5236AA1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAE
Deuteranopia (green-blind)
#0049A8
Tritanopia (blue-blind)
#31536B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5236aa;
/* rgb */ color: rgb(82, 54, 170);
/* oklch */ color: oklch(43.7% 0.175 288.0);
Tailwind
colors: {
  custom: {
    50: '#8b6fc4',
    500: '#5236aa',
    950: '#000000',
  },
}
SCSS
$custom: #5236aa;
$custom-light: #8b6fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5236aa",
  "rgb": {
    "r": 82,
    "g": 54,
    "b": 170
  },
  "hsl": {
    "h": 254.483,
    "s": 51.786,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43674,
    "c": 0.17524,
    "h": 288
  },
  "luminance": 0.07334
}

Semantic roles & 50–950 ramp

primary
#5236AA
secondary
#B0C17B
accent
#DB4DB9
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5236AA

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

Preview Lab → · Contrast checker → · Palette generator →

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