#5238C6#5238C6

#5238C6 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.5% C 0.207 H 283.2°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#5238C6
RGBrgb(82, 56, 198)
HSLhsl(251, 56%, 50%)
HSVhsv(251, 72%, 78%)
CMYKcmyk(58.6%, 71.7%, 0%, 22.4%)
CIE-LABlab(35.40, 49.16, -69.99)
CIE-LCHlch(35.40, 85.53, 305.09°)
OKLaboklab(46.46% 0.0472 -0.2016)
OKLCHoklch(46.46% 0.207 283.2)
XYZxyz(15.0837, 8.6984, 54.2993)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5238C6 #ACC638
analogous
#3865C6 #5238C6 #9938C6
triadic
#5238C6 #C65238 #38C652
tetradic
#5238C6 #C63865 #ACC638 #38C699
square
#5238C6 #C63865 #ACC638 #38C699
split-complementary
#5238C6 #C69938 #65C638
monochromatic
#2A1D67 #3E2B96 #5238C6 #7B67D4 #A597E2

Accessibility & contrast

On white

7.66
#5238C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5238C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5238C6#FFFFFF#000000##FFFFFF
##5238C61.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CA
Deuteranopia (green-blind)
#004EC3
Tritanopia (blue-blind)
#065F7B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5238c6;
/* rgb */ color: rgb(82, 56, 198);
/* oklch */ color: oklch(46.5% 0.207 283.2);
Tailwind
colors: {
  custom: {
    50: '#8f71d8',
    500: '#5238c6',
    950: '#000000',
  },
}
SCSS
$custom: #5238c6;
$custom-light: #8f71d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5238c6",
  "rgb": {
    "r": 82,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 250.986,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.46455,
    "c": 0.20708,
    "h": 283.2
  },
  "luminance": 0.08699
}

Semantic roles & 50–950 ramp

primary
#5238C6
secondary
#C1CD8D
accent
#DF49C4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5238C6

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

Preview Lab → · Contrast checker → · Palette generator →

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