#5238BD#5238BD

#5238BD is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.6% C 0.196 H 284.5°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#5238BD
RGBrgb(82, 56, 189)
HSLhsl(252, 54%, 48%)
HSVhsv(252, 70%, 74%)
CMYKcmyk(56.6%, 70.4%, 0%, 25.9%)
CIE-LABlab(34.59, 46.47, -66.03)
CIE-LCHlch(34.59, 80.75, 305.14°)
OKLaboklab(45.63% 0.049 -0.19)
OKLCHoklch(45.63% 0.196 284.5)
XYZxyz(14.0764, 8.2955, 48.9937)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5238BD #A3BD38
analogous
#3861BD #5238BD #9438BD
triadic
#5238BD #BD5238 #38BD52
tetradic
#5238BD #BD3861 #A3BD38 #38BD94
square
#5238BD #BD3861 #A3BD38 #38BD94
split-complementary
#5238BD #BD9438 #61BD38
monochromatic
#291C5F #3E2A8E #5238BD #7762D0 #A091DE

Accessibility & contrast

On white

7.90
#5238BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5238BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5238BD
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5238BD#FFFFFF#000000##FFFFFF
##5238BD1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C1
Deuteranopia (green-blind)
#004DBA
Tritanopia (blue-blind)
#1C5B76
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5238bd;
/* rgb */ color: rgb(82, 56, 189);
/* oklch */ color: oklch(45.6% 0.196 284.5);
Tailwind
colors: {
  custom: {
    50: '#8e71d2',
    500: '#5238bd',
    950: '#000000',
  },
}
SCSS
$custom: #5238bd;
$custom-light: #8e71d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5238bd",
  "rgb": {
    "r": 82,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 251.729,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45634,
    "c": 0.19625,
    "h": 284.5
  },
  "luminance": 0.08296
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5238BD

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

Preview Lab → · Contrast checker → · Palette generator →

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