#5238AA#5238AA

#5238AA is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.0% C 0.173 H 287.5°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#5238AA
RGBrgb(82, 56, 170)
HSLhsl(254, 50%, 44%)
HSVhsv(254, 67%, 67%)
CMYKcmyk(51.8%, 67.1%, 0%, 33.3%)
CIE-LABlab(32.97, 40.77, -57.40)
CIE-LCHlch(32.97, 70.41, 305.39°)
OKLaboklab(43.97% 0.0521 -0.1647)
OKLCHoklch(43.97% 0.173 287.5)
XYZxyz(12.1474, 7.5239, 38.8346)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5238AA #90AA38
analogous
#3857AA #5238AA #8B38AA
triadic
#5238AA #AA5238 #38AA52
tetradic
#5238AA #AA3857 #90AA38 #38AA8B
square
#5238AA #AA3857 #90AA38 #38AA8B
split-complementary
#5238AA #AA8B38 #57AA38
monochromatic
#261A4E #3C297C #5238AA #7157C8 #9885D7

Accessibility & contrast

On white

8.38
#5238AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5238AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5238AA
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5238AA#FFFFFF#000000##FFFFFF
##5238AA1.008.382.508.38
#FFFFFF8.381.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AE
Deuteranopia (green-blind)
#004AA8
Tritanopia (blue-blind)
#31546C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5238aa;
/* rgb */ color: rgb(82, 56, 170);
/* oklch */ color: oklch(44.0% 0.173 287.5);
Tailwind
colors: {
  custom: {
    50: '#8b70c4',
    500: '#5238aa',
    950: '#000000',
  },
}
SCSS
$custom: #5238aa;
$custom-light: #8b70c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5238aa",
  "rgb": {
    "r": 82,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 253.684,
    "s": 50.442,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43973,
    "c": 0.17275,
    "h": 287.5
  },
  "luminance": 0.07524
}

Semantic roles & 50–950 ramp

primary
#5238AA
secondary
#B1C17D
accent
#DA4EBA
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5238AA

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

Preview Lab → · Contrast checker → · Palette generator →

#5238AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva