#5238BA#5238BA

#5238BA is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.4% C 0.193 H 284.9°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#5238BA
RGBrgb(82, 56, 186)
HSLhsl(252, 54%, 47%)
HSVhsv(252, 70%, 73%)
CMYKcmyk(55.9%, 69.9%, 0%, 27.1%)
CIE-LABlab(34.33, 45.57, -64.70)
CIE-LCHlch(34.33, 79.14, 305.16°)
OKLaboklab(45.37% 0.0495 -0.1861)
OKLCHoklch(45.37% 0.193 284.9)
XYZxyz(13.7541, 8.1666, 47.2964)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5238BA #A0BA38
analogous
#385FBA #5238BA #9338BA
triadic
#5238BA #BA5238 #38BA52
tetradic
#5238BA #BA385F #A0BA38 #38BA93
square
#5238BA #BA385F #A0BA38 #38BA93
split-complementary
#5238BA #BA9338 #5FBA38
monochromatic
#291C5C #3D2A8B #5238BA #7660CF #9F8FDD

Accessibility & contrast

On white

7.97
#5238BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5238BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5238BA
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5238BA#FFFFFF#000000##FFFFFF
##5238BA1.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BE
Deuteranopia (green-blind)
#004DB8
Tritanopia (blue-blind)
#215A75
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5238ba;
/* rgb */ color: rgb(82, 56, 186);
/* oklch */ color: oklch(45.4% 0.193 284.9);
Tailwind
colors: {
  custom: {
    50: '#8d71d0',
    500: '#5238ba',
    950: '#000000',
  },
}
SCSS
$custom: #5238ba;
$custom-light: #8d71d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5238ba",
  "rgb": {
    "r": 82,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 252,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45365,
    "c": 0.1926,
    "h": 284.9
  },
  "luminance": 0.08167
}

Semantic roles & 50–950 ramp

primary
#5238BA
secondary
#BBC886
accent
#DD4BC0
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #5238BA

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

Preview Lab → · Contrast checker → · Palette generator →

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