#52387F#52387F

#52387F is a dark, moderate violet. Relative luminance 0.062; OKLCH L 40.7% C 0.116 H 297.9°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#52387F
RGBrgb(82, 56, 127)
HSLhsl(262, 39%, 36%)
HSVhsv(262, 56%, 50%)
CMYKcmyk(35.4%, 55.9%, 0%, 50.2%)
CIE-LABlab(29.80, 28.13, -36.23)
CIE-LCHlch(29.80, 45.87, 307.83°)
OKLaboklab(40.65% 0.0544 -0.1025)
OKLCHoklch(40.65% 0.116 297.9)
XYZxyz(8.7237, 6.1544, 20.8029)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52387F #657F38
analogous
#38417F #52387F #75387F
triadic
#52387F #7F5238 #387F52
tetradic
#52387F #7F3841 #657F38 #387F75
square
#52387F #7F3841 #657F38 #387F75
split-complementary
#52387F #7F7538 #417F38
monochromatic
#1B132A #372555 #52387F #6D4BA9 #8E71C0

Accessibility & contrast

On white

9.41
#52387F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#52387F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52387F
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52387F#FFFFFF#000000##FFFFFF
##52387F1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4681
Deuteranopia (green-blind)
#23457D
Tritanopia (blue-blind)
#484656
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #52387f;
/* rgb */ color: rgb(82, 56, 127);
/* oklch */ color: oklch(40.7% 0.116 297.9);
Tailwind
colors: {
  custom: {
    50: '#856fa4',
    500: '#52387f',
    950: '#000000',
  },
}
SCSS
$custom: #52387f;
$custom-light: #856fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#52387f",
  "rgb": {
    "r": 82,
    "g": 56,
    "b": 127
  },
  "hsl": {
    "h": 261.972,
    "s": 38.798,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40654,
    "c": 0.116,
    "h": 297.9
  },
  "luminance": 0.06154
}

Semantic roles & 50–950 ramp

primary
#52387F
secondary
#92A969
accent
#CF59A4
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #52387F

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

Preview Lab → · Contrast checker → · Palette generator →

#52387F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva