#5238A2#5238A2

#5238A2 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.3% C 0.163 H 289.1°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#5238A2
RGBrgb(82, 56, 162)
HSLhsl(255, 49%, 43%)
HSVhsv(255, 65%, 64%)
CMYKcmyk(49.4%, 65.4%, 0%, 36.5%)
CIE-LABlab(32.33, 38.38, -53.64)
CIE-LCHlch(32.33, 65.96, 305.58°)
OKLaboklab(43.31% 0.0531 -0.1537)
OKLCHoklch(43.31% 0.163 289.1)
XYZxyz(11.4136, 7.2303, 34.9696)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5238A2 #88A238
analogous
#3853A2 #5238A2 #8738A2
triadic
#5238A2 #A25238 #38A252
tetradic
#5238A2 #A23853 #88A238 #38A287
square
#5238A2 #A23853 #88A238 #38A287
split-complementary
#5238A2 #A28738 #53A238
monochromatic
#241947 #3B2875 #5238A2 #6F53C4 #9581D3

Accessibility & contrast

On white

8.58
#5238A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5238A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5238A2#FFFFFF#000000##FFFFFF
##5238A21.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#0049A0
Tritanopia (blue-blind)
#375268
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5238a2;
/* rgb */ color: rgb(82, 56, 162);
/* oklch */ color: oklch(43.3% 0.163 289.1);
Tailwind
colors: {
  custom: {
    50: '#8a70be',
    500: '#5238a2',
    950: '#000000',
  },
}
SCSS
$custom: #5238a2;
$custom-light: #8a70be;
$custom-dark: #000000;
JSON
{
  "hex": "#5238a2",
  "rgb": {
    "r": 82,
    "g": 56,
    "b": 162
  },
  "hsl": {
    "h": 254.717,
    "s": 48.624,
    "l": 42.745
  },
  "oklch": {
    "l": 0.43305,
    "c": 0.16258,
    "h": 289.1
  },
  "luminance": 0.07231
}

Semantic roles & 50–950 ramp

primary
#5238A2
secondary
#ACBD79
accent
#D850B7
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #5238A2

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

Preview Lab → · Contrast checker → · Palette generator →

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