#5238CA#5238CA

#5238CA is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 46.8% C 0.212 H 282.7°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#5238CA
RGBrgb(82, 56, 202)
HSLhsl(251, 58%, 51%)
HSVhsv(251, 72%, 79%)
CMYKcmyk(59.4%, 72.3%, 0%, 20.8%)
CIE-LABlab(35.76, 50.36, -71.72)
CIE-LCHlch(35.76, 87.63, 305.07°)
OKLaboklab(46.83% 0.0464 -0.2067)
OKLCHoklch(46.83% 0.212 282.7)
XYZxyz(15.5512, 8.8854, 56.7612)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5238CA #B0CA38
analogous
#3867CA #5238CA #9B38CA
triadic
#5238CA #CA5238 #38CA52
tetradic
#5238CA #CA3867 #B0CA38 #38CA9B
square
#5238CA #CA3867 #B0CA38 #38CA9B
split-complementary
#5238CA #CA9B38 #67CA38
monochromatic
#2B1D6B #3E299B #5238CA #7C68D7 #A699E4

Accessibility & contrast

On white

7.56
#5238CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5238CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5238CA
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5238CA#FFFFFF#000000##FFFFFF
##5238CA1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CE
Deuteranopia (green-blind)
#004FC7
Tritanopia (blue-blind)
#00607E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5238ca;
/* rgb */ color: rgb(82, 56, 202);
/* oklch */ color: oklch(46.8% 0.212 282.7);
Tailwind
colors: {
  custom: {
    50: '#9071db',
    500: '#5238ca',
    950: '#000000',
  },
}
SCSS
$custom: #5238ca;
$custom-light: #9071db;
$custom-dark: #000000;
JSON
{
  "hex": "#5238ca",
  "rgb": {
    "r": 82,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 250.685,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46826,
    "c": 0.21182,
    "h": 282.7
  },
  "luminance": 0.08886
}

Semantic roles & 50–950 ramp

primary
#5238CA
secondary
#C4CF8E
accent
#E147C6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5238CA

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

Preview Lab → · Contrast checker → · Palette generator →

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