#5236B2#5236B2

#5236B2 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.4% C 0.185 H 286.5°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#5236B2
RGBrgb(82, 54, 178)
HSLhsl(254, 53%, 45%)
HSVhsv(254, 70%, 70%)
CMYKcmyk(53.9%, 69.7%, 0%, 30.2%)
CIE-LABlab(33.23, 44.29, -61.75)
CIE-LCHlch(33.23, 75.99, 305.65°)
OKLaboklab(44.37% 0.0527 -0.1775)
OKLCHoklch(44.37% 0.185 286.5)
XYZxyz(12.8323, 7.6459, 42.9105)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5236B2 #96B236
analogous
#3658B2 #5236B2 #9036B2
triadic
#5236B2 #B25236 #36B252
tetradic
#5236B2 #B23658 #96B236 #36B290
square
#5236B2 #B23658 #96B236 #36B290
split-complementary
#5236B2 #B29036 #58B236
monochromatic
#271A54 #3C2883 #5236B2 #7359CD #9A88DB

Accessibility & contrast

On white

8.30
#5236B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#5236B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5236B2#FFFFFF#000000##FFFFFF
##5236B21.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#004BB0
Tritanopia (blue-blind)
#2A5670
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5236b2;
/* rgb */ color: rgb(82, 54, 178);
/* oklch */ color: oklch(44.4% 0.185 286.5);
Tailwind
colors: {
  custom: {
    50: '#8c6fca',
    500: '#5236b2',
    950: '#000000',
  },
}
SCSS
$custom: #5236b2;
$custom-light: #8c6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#5236b2",
  "rgb": {
    "r": 82,
    "g": 54,
    "b": 178
  },
  "hsl": {
    "h": 253.548,
    "s": 53.448,
    "l": 45.49
  },
  "oklch": {
    "l": 0.4437,
    "c": 0.18512,
    "h": 286.5
  },
  "luminance": 0.07647
}

Semantic roles & 50–950 ramp

primary
#5236B2
secondary
#B5C57F
accent
#DD4BBC
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5236B2

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

Preview Lab → · Contrast checker → · Palette generator →

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