#5238CB#5238CB

#5238CB is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 46.9% C 0.213 H 282.5°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#5238CB
RGBrgb(82, 56, 203)
HSLhsl(251, 59%, 51%)
HSVhsv(251, 72%, 80%)
CMYKcmyk(59.6%, 72.4%, 0%, 20.4%)
CIE-LABlab(35.85, 50.65, -72.15)
CIE-LCHlch(35.85, 88.15, 305.07°)
OKLaboklab(46.92% 0.0462 -0.2079)
OKLCHoklch(46.92% 0.213 282.5)
XYZxyz(15.6700, 8.9329, 57.3868)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5238CB #B1CB38
analogous
#3867CB #5238CB #9B38CB
triadic
#5238CB #CB5238 #38CB52
tetradic
#5238CB #CB3867 #B1CB38 #38CB9B
square
#5238CB #CB3867 #B1CB38 #38CB9B
split-complementary
#5238CB #CB9B38 #67CB38
monochromatic
#2A1C6C #3D299D #5238CB #7C69D8 #A699E4

Accessibility & contrast

On white

7.54
#5238CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5238CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5238CB
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5238CB#FFFFFF#000000##FFFFFF
##5238CB1.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CF
Deuteranopia (green-blind)
#004FC8
Tritanopia (blue-blind)
#00617E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5238cb;
/* rgb */ color: rgb(82, 56, 203);
/* oklch */ color: oklch(46.9% 0.213 282.5);
Tailwind
colors: {
  custom: {
    50: '#9071dc',
    500: '#5238cb',
    950: '#000000',
  },
}
SCSS
$custom: #5238cb;
$custom-light: #9071dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5238cb",
  "rgb": {
    "r": 82,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 250.612,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.46919,
    "c": 0.21301,
    "h": 282.5
  },
  "luminance": 0.08934
}

Semantic roles & 50–950 ramp

primary
#5238CB
secondary
#C4D08F
accent
#E246C6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5238CB

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

Preview Lab → · Contrast checker → · Palette generator →

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