#5236A8#5236A8

#5236A8 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.5% C 0.173 H 288.3°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#5236A8
RGBrgb(82, 54, 168)
HSLhsl(255, 51%, 44%)
HSVhsv(255, 68%, 66%)
CMYKcmyk(51.2%, 67.9%, 0%, 34.1%)
CIE-LABlab(32.39, 41.31, -57.15)
CIE-LCHlch(32.39, 70.52, 305.86°)
OKLaboklab(43.5% 0.0543 -0.164)
OKLCHoklch(43.5% 0.173 288.3)
XYZxyz(11.8647, 7.2588, 37.8141)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5236A8 #8CA836
analogous
#3653A8 #5236A8 #8B36A8
triadic
#5236A8 #A85236 #36A852
tetradic
#5236A8 #A83653 #8CA836 #36A88B
square
#5236A8 #A83653 #8CA836 #36A88B
split-complementary
#5236A8 #A88B36 #53A836
monochromatic
#25184B #3B277A #5236A8 #7053C8 #9782D7

Accessibility & contrast

On white

8.57
#5236A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5236A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5236A8#FFFFFF#000000##FFFFFF
##5236A81.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAB
Deuteranopia (green-blind)
#0049A6
Tritanopia (blue-blind)
#33536A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5236a8;
/* rgb */ color: rgb(82, 54, 168);
/* oklch */ color: oklch(43.5% 0.173 288.3);
Tailwind
colors: {
  custom: {
    50: '#8b6fc3',
    500: '#5236a8',
    950: '#000000',
  },
}
SCSS
$custom: #5236a8;
$custom-light: #8b6fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#5236a8",
  "rgb": {
    "r": 82,
    "g": 54,
    "b": 168
  },
  "hsl": {
    "h": 254.737,
    "s": 51.351,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43502,
    "c": 0.17274,
    "h": 288.3
  },
  "luminance": 0.07259
}

Semantic roles & 50–950 ramp

primary
#5236A8
secondary
#AFC07A
accent
#DB4DB8
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #5236A8

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

Preview Lab → · Contrast checker → · Palette generator →

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