#5236A7#5236A7

#5236A7 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.4% C 0.172 H 288.5°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#5236A7
RGBrgb(82, 54, 167)
HSLhsl(255, 51%, 43%)
HSVhsv(255, 68%, 65%)
CMYKcmyk(50.9%, 67.7%, 0%, 34.5%)
CIE-LABlab(32.31, 41.02, -56.69)
CIE-LCHlch(32.31, 69.97, 305.89°)
OKLaboklab(43.42% 0.0545 -0.1626)
OKLCHoklch(43.42% 0.172 288.5)
XYZxyz(11.7719, 7.2217, 37.3254)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5236A7 #8BA736
analogous
#3652A7 #5236A7 #8A36A7
triadic
#5236A7 #A75236 #36A752
tetradic
#5236A7 #A73652 #8BA736 #36A78A
square
#5236A7 #A73652 #8BA736 #36A78A
split-complementary
#5236A7 #A78A36 #52A736
monochromatic
#25184B #3B2779 #5236A7 #7053C7 #9681D6

Accessibility & contrast

On white

8.59
#5236A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5236A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5236A7#FFFFFF#000000##FFFFFF
##5236A71.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAA
Deuteranopia (green-blind)
#0049A5
Tritanopia (blue-blind)
#34526A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5236a7;
/* rgb */ color: rgb(82, 54, 167);
/* oklch */ color: oklch(43.4% 0.172 288.5);
Tailwind
colors: {
  custom: {
    50: '#8a6fc2',
    500: '#5236a7',
    950: '#000000',
  },
}
SCSS
$custom: #5236a7;
$custom-light: #8a6fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#5236a7",
  "rgb": {
    "r": 82,
    "g": 54,
    "b": 167
  },
  "hsl": {
    "h": 254.867,
    "s": 51.131,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43417,
    "c": 0.1715,
    "h": 288.5
  },
  "luminance": 0.07222
}

Semantic roles & 50–950 ramp

primary
#5236A7
secondary
#AEC079
accent
#DB4DB8
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #5236A7

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

Preview Lab → · Contrast checker → · Palette generator →

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