#5238C8#5238C8

#5238C8 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.6% C 0.209 H 282.9°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#5238C8
RGBrgb(82, 56, 200)
HSLhsl(251, 57%, 50%)
HSVhsv(251, 72%, 78%)
CMYKcmyk(59%, 72%, 0%, 21.6%)
CIE-LABlab(35.58, 49.76, -70.85)
CIE-LCHlch(35.58, 86.58, 305.08°)
OKLaboklab(46.64% 0.0468 -0.2041)
OKLCHoklch(46.64% 0.209 282.9)
XYZxyz(15.3159, 8.7913, 55.5222)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5238C8 #AEC838
analogous
#3866C8 #5238C8 #9A38C8
triadic
#5238C8 #C85238 #38C852
tetradic
#5238C8 #C83866 #AEC838 #38C89A
square
#5238C8 #C83866 #AEC838 #38C89A
split-complementary
#5238C8 #C89A38 #66C838
monochromatic
#2B1D69 #3E2A99 #5238C8 #7C68D5 #A598E3

Accessibility & contrast

On white

7.61
#5238C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5238C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5238C8#FFFFFF#000000##FFFFFF
##5238C81.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CC
Deuteranopia (green-blind)
#004FC5
Tritanopia (blue-blind)
#005F7C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5238c8;
/* rgb */ color: rgb(82, 56, 200);
/* oklch */ color: oklch(46.6% 0.209 282.9);
Tailwind
colors: {
  custom: {
    50: '#9071da',
    500: '#5238c8',
    950: '#000000',
  },
}
SCSS
$custom: #5238c8;
$custom-light: #9071da;
$custom-dark: #000000;
JSON
{
  "hex": "#5238c8",
  "rgb": {
    "r": 82,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 250.833,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.4664,
    "c": 0.20945,
    "h": 282.9
  },
  "luminance": 0.08792
}

Semantic roles & 50–950 ramp

primary
#5238C8
secondary
#C2CE8E
accent
#E048C4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5238C8

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

Preview Lab → · Contrast checker → · Palette generator →

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