#52487F#52487F

#52487F is a dark, moderate violet. Relative luminance 0.080; OKLCH L 43.7% C 0.089 H 290.6°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#52487F
RGBrgb(82, 72, 127)
HSLhsl(251, 28%, 39%)
HSVhsv(251, 43%, 50%)
CMYKcmyk(35.4%, 43.3%, 0%, 50.2%)
CIE-LABlab(33.90, 17.98, -29.71)
CIE-LCHlch(33.90, 34.73, 301.18°)
OKLaboklab(43.73% 0.0313 -0.0834)
OKLCHoklch(43.73% 0.089 290.6)
XYZxyz(9.6268, 7.9606, 21.1039)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52487F #757F48
analogous
#485A7F #52487F #6E487F
triadic
#52487F #7F5248 #487F52
tetradic
#52487F #7F485A #757F48 #487F6E
square
#52487F #7F485A #757F48 #487F6E
split-complementary
#52487F #7F6E48 #5A7F48
monochromatic
#201C31 #393258 #52487F #6C60A5 #9087BB

Accessibility & contrast

On white

8.10
#52487F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#52487F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52487F
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52487F#FFFFFF#000000##FFFFFF
##52487F1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375181
Deuteranopia (green-blind)
#374F7E
Tritanopia (blue-blind)
#47525D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #52487f;
/* rgb */ color: rgb(82, 72, 127);
/* oklch */ color: oklch(43.7% 0.089 290.6);
Tailwind
colors: {
  custom: {
    50: '#847ba4',
    500: '#52487f',
    950: '#000000',
  },
}
SCSS
$custom: #52487f;
$custom-light: #847ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#52487f",
  "rgb": {
    "r": 82,
    "g": 72,
    "b": 127
  },
  "hsl": {
    "h": 250.909,
    "s": 27.638,
    "l": 39.02
  },
  "oklch": {
    "l": 0.43729,
    "c": 0.0891,
    "h": 290.6
  },
  "luminance": 0.07961
}

Semantic roles & 50–950 ramp

primary
#52487F
secondary
#9FA77C
accent
#C464B2
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B090F
muted
#7C7B7F

Preview Lab

Preview with #52487F

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

Preview Lab → · Contrast checker → · Palette generator →

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