#5238BC#5238BC

#5238BC is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.5% C 0.195 H 284.6°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#5238BC
RGBrgb(82, 56, 188)
HSLhsl(252, 54%, 48%)
HSVhsv(252, 70%, 74%)
CMYKcmyk(56.4%, 70.2%, 0%, 26.3%)
CIE-LABlab(34.50, 46.17, -65.59)
CIE-LCHlch(34.50, 80.21, 305.15°)
OKLaboklab(45.55% 0.0492 -0.1887)
OKLCHoklch(45.55% 0.195 284.6)
XYZxyz(13.9682, 8.2522, 48.4240)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5238BC #A2BC38
analogous
#3860BC #5238BC #9438BC
triadic
#5238BC #BC5238 #38BC52
tetradic
#5238BC #BC3860 #A2BC38 #38BC94
square
#5238BC #BC3860 #A2BC38 #38BC94
split-complementary
#5238BC #BC9438 #60BC38
monochromatic
#291C5E #3D2A8D #5238BC #7761D0 #A090DE

Accessibility & contrast

On white

7.92
#5238BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5238BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5238BC
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5238BC#FFFFFF#000000##FFFFFF
##5238BC1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C0
Deuteranopia (green-blind)
#004DB9
Tritanopia (blue-blind)
#1E5B76
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5238bc;
/* rgb */ color: rgb(82, 56, 188);
/* oklch */ color: oklch(45.5% 0.195 284.6);
Tailwind
colors: {
  custom: {
    50: '#8e71d1',
    500: '#5238bc',
    950: '#000000',
  },
}
SCSS
$custom: #5238bc;
$custom-light: #8e71d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5238bc",
  "rgb": {
    "r": 82,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 251.818,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.45545,
    "c": 0.19503,
    "h": 284.6
  },
  "luminance": 0.08253
}

Semantic roles & 50–950 ramp

primary
#5238BC
secondary
#BCC987
accent
#DD4AC0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5238BC

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

Preview Lab → · Contrast checker → · Palette generator →

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