#5238CE#5238CE

#5238CE is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.2% C 0.217 H 282.1°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#5238CE
RGBrgb(82, 56, 206)
HSLhsl(250, 60%, 51%)
HSVhsv(250, 73%, 81%)
CMYKcmyk(60.2%, 72.8%, 0%, 19.2%)
CIE-LABlab(36.13, 51.55, -73.43)
CIE-LCHlch(36.13, 89.72, 305.07°)
OKLaboklab(47.2% 0.0455 -0.2117)
OKLCHoklch(47.2% 0.217 282.1)
XYZxyz(16.0310, 9.0773, 59.2879)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5238CE #B4CE38
analogous
#3869CE #5238CE #9D38CE
triadic
#5238CE #CE5238 #38CE52
tetradic
#5238CE #CE3869 #B4CE38 #38CE9D
square
#5238CE #CE3869 #B4CE38 #38CE9D
split-complementary
#5238CE #CE9D38 #69CE38
monochromatic
#2A1C70 #3D28A1 #5238CE #7D69DA #A79AE6

Accessibility & contrast

On white

7.46
#5238CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5238CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5238CE#FFFFFF#000000##FFFFFF
##5238CE1.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD2
Deuteranopia (green-blind)
#0050CB
Tritanopia (blue-blind)
#006280
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5238ce;
/* rgb */ color: rgb(82, 56, 206);
/* oklch */ color: oklch(47.2% 0.217 282.1);
Tailwind
colors: {
  custom: {
    50: '#9172de',
    500: '#5238ce',
    950: '#000000',
  },
}
SCSS
$custom: #5238ce;
$custom-light: #9172de;
$custom-dark: #000000;
JSON
{
  "hex": "#5238ce",
  "rgb": {
    "r": 82,
    "g": 56,
    "b": 206
  },
  "hsl": {
    "h": 250.4,
    "s": 60.484,
    "l": 51.373
  },
  "oklch": {
    "l": 0.472,
    "c": 0.21654,
    "h": 282.1
  },
  "luminance": 0.09078
}

Semantic roles & 50–950 ramp

primary
#5238CE
secondary
#C7D290
accent
#E444C8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5238CE

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

Preview Lab → · Contrast checker → · Palette generator →

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