#5237B3#5237B3

#5237B3 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.6% C 0.185 H 286.2°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#5237B3
RGBrgb(82, 55, 179)
HSLhsl(253, 53%, 46%)
HSVhsv(253, 69%, 70%)
CMYKcmyk(54.2%, 69.3%, 0%, 29.8%)
CIE-LABlab(33.52, 44.03, -61.87)
CIE-LCHlch(33.52, 75.94, 305.44°)
OKLaboklab(44.6% 0.0516 -0.1778)
OKLCHoklch(44.6% 0.185 286.2)
XYZxyz(12.9801, 7.7802, 43.4569)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237B3 #98B337
analogous
#375AB3 #5237B3 #9037B3
triadic
#5237B3 #B35237 #37B352
tetradic
#5237B3 #B3375A #98B337 #37B390
square
#5237B3 #B3375A #98B337 #37B390
split-complementary
#5237B3 #B39037 #5AB337
monochromatic
#271A55 #3D2984 #5237B3 #735BCD #9B8ADB

Accessibility & contrast

On white

8.22
#5237B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5237B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5237B3
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5237B3#FFFFFF#000000##FFFFFF
##5237B31.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B7
Deuteranopia (green-blind)
#004BB1
Tritanopia (blue-blind)
#295771
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5237b3;
/* rgb */ color: rgb(82, 55, 179);
/* oklch */ color: oklch(44.6% 0.185 286.2);
Tailwind
colors: {
  custom: {
    50: '#8c70cb',
    500: '#5237b3',
    950: '#000000',
  },
}
SCSS
$custom: #5237b3;
$custom-light: #8c70cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5237b3",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 179
  },
  "hsl": {
    "h": 253.065,
    "s": 52.991,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44602,
    "c": 0.18518,
    "h": 286.2
  },
  "luminance": 0.07781
}

Semantic roles & 50–950 ramp

primary
#5237B3
secondary
#B6C581
accent
#DC4BBD
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5237B3

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

Preview Lab → · Contrast checker → · Palette generator →

#5237B3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva