#5238BE#5238BE

#5238BE is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.7% C 0.197 H 284.3°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#5238BE
RGBrgb(82, 56, 190)
HSLhsl(252, 54%, 48%)
HSVhsv(252, 71%, 75%)
CMYKcmyk(56.8%, 70.5%, 0%, 25.5%)
CIE-LABlab(34.68, 46.77, -66.48)
CIE-LCHlch(34.68, 81.28, 305.13°)
OKLaboklab(45.73% 0.0488 -0.1913)
OKLCHoklch(45.73% 0.197 284.3)
XYZxyz(14.1853, 8.3390, 49.5673)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5238BE #A4BE38
analogous
#3861BE #5238BE #9538BE
triadic
#5238BE #BE5238 #38BE52
tetradic
#5238BE #BE3861 #A4BE38 #38BE95
square
#5238BE #BE3861 #A4BE38 #38BE95
split-complementary
#5238BE #BE9538 #61BE38
monochromatic
#291C5F #3E2A8F #5238BE #7862D1 #A192DF

Accessibility & contrast

On white

7.87
#5238BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5238BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5238BE
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5238BE#FFFFFF#000000##FFFFFF
##5238BE1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C2
Deuteranopia (green-blind)
#004DBB
Tritanopia (blue-blind)
#1B5C77
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5238be;
/* rgb */ color: rgb(82, 56, 190);
/* oklch */ color: oklch(45.7% 0.197 284.3);
Tailwind
colors: {
  custom: {
    50: '#8e71d3',
    500: '#5238be',
    950: '#000000',
  },
}
SCSS
$custom: #5238be;
$custom-light: #8e71d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5238be",
  "rgb": {
    "r": 82,
    "g": 56,
    "b": 190
  },
  "hsl": {
    "h": 251.642,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45725,
    "c": 0.19746,
    "h": 284.3
  },
  "luminance": 0.0834
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5238BE

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

Preview Lab → · Contrast checker → · Palette generator →

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