#5238BB#5238BB

#5238BB is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.5% C 0.194 H 284.8°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#5238BB
RGBrgb(82, 56, 187)
HSLhsl(252, 54%, 48%)
HSVhsv(252, 70%, 73%)
CMYKcmyk(56.1%, 70.1%, 0%, 26.7%)
CIE-LABlab(34.41, 45.88, -65.14)
CIE-LCHlch(34.41, 79.67, 305.15°)
OKLaboklab(45.46% 0.0494 -0.1874)
OKLCHoklch(45.46% 0.194 284.8)
XYZxyz(13.8608, 8.2092, 47.8582)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5238BB #A1BB38
analogous
#3860BB #5238BB #9338BB
triadic
#5238BB #BB5238 #38BB52
tetradic
#5238BB #BB3860 #A1BB38 #38BB93
square
#5238BB #BB3860 #A1BB38 #38BB93
split-complementary
#5238BB #BB9338 #60BB38
monochromatic
#291C5D #3D2A8C #5238BB #7761D0 #9F90DE

Accessibility & contrast

On white

7.95
#5238BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5238BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5238BB
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5238BB#FFFFFF#000000##FFFFFF
##5238BB1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BF
Deuteranopia (green-blind)
#004DB8
Tritanopia (blue-blind)
#1F5B75
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5238bb;
/* rgb */ color: rgb(82, 56, 187);
/* oklch */ color: oklch(45.5% 0.194 284.8);
Tailwind
colors: {
  custom: {
    50: '#8d71d1',
    500: '#5238bb',
    950: '#000000',
  },
}
SCSS
$custom: #5238bb;
$custom-light: #8d71d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5238bb",
  "rgb": {
    "r": 82,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 251.908,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45455,
    "c": 0.19382,
    "h": 284.8
  },
  "luminance": 0.0821
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5238BB

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

Preview Lab → · Contrast checker → · Palette generator →

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