#5238C5#5238C5

#5238C5 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.4% C 0.206 H 283.3°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#5238C5
RGBrgb(82, 56, 197)
HSLhsl(251, 56%, 50%)
HSVhsv(251, 72%, 77%)
CMYKcmyk(58.4%, 71.6%, 0%, 22.7%)
CIE-LABlab(35.31, 48.87, -69.55)
CIE-LCHlch(35.31, 85.00, 305.09°)
OKLaboklab(46.36% 0.0474 -0.2003)
OKLCHoklch(46.36% 0.206 283.3)
XYZxyz(14.9688, 8.6524, 53.6938)
Luminance0.0865 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5238C5 #ABC538
analogous
#3865C5 #5238C5 #9938C5
triadic
#5238C5 #C55238 #38C552
tetradic
#5238C5 #C53865 #ABC538 #38C599
square
#5238C5 #C53865 #ABC538 #38C599
split-complementary
#5238C5 #C59938 #65C538
monochromatic
#2A1D66 #3E2A95 #5238C5 #7B67D4 #A496E1

Accessibility & contrast

On white

7.69
#5238C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5238C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5238C5#FFFFFF#000000##FFFFFF
##5238C51.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C9
Deuteranopia (green-blind)
#004EC2
Tritanopia (blue-blind)
#0A5E7B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5238c5;
/* rgb */ color: rgb(82, 56, 197);
/* oklch */ color: oklch(46.4% 0.206 283.3);
Tailwind
colors: {
  custom: {
    50: '#8f71d8',
    500: '#5238c5',
    950: '#000000',
  },
}
SCSS
$custom: #5238c5;
$custom-light: #8f71d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5238c5",
  "rgb": {
    "r": 82,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 251.064,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46363,
    "c": 0.20588,
    "h": 283.3
  },
  "luminance": 0.08653
}

Semantic roles & 50–950 ramp

primary
#5238C5
secondary
#C1CD8C
accent
#DF49C3
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5238C5

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

Preview Lab → · Contrast checker → · Palette generator →

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