#5238D4#5238D4

#5238D4 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.8% C 0.224 H 281.4°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#5238D4
RGBrgb(82, 56, 212)
HSLhsl(250, 64%, 53%)
HSVhsv(250, 74%, 83%)
CMYKcmyk(61.3%, 73.6%, 0%, 16.9%)
CIE-LABlab(36.70, 53.32, -75.98)
CIE-LCHlch(36.70, 92.82, 305.06°)
OKLaboklab(47.77% 0.0442 -0.2191)
OKLCHoklch(47.77% 0.224 281.4)
XYZxyz(16.7738, 9.3744, 63.2001)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5238D4 #BAD438
analogous
#386CD4 #5238D4 #A038D4
triadic
#5238D4 #D45238 #38D452
tetradic
#5238D4 #D4386C #BAD438 #38D4A0
square
#5238D4 #D4386C #BAD438 #38D4A0
split-complementary
#5238D4 #D4A038 #6CD438
monochromatic
#2A1A78 #3B25AA #5238D4 #7E6ADF #AA9DEA

Accessibility & contrast

On white

7.30
#5238D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5238D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5238D4
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5238D4#FFFFFF#000000##FFFFFF
##5238D41.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD9
Deuteranopia (green-blind)
#0051D1
Tritanopia (blue-blind)
#006483
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5238d4;
/* rgb */ color: rgb(82, 56, 212);
/* oklch */ color: oklch(47.8% 0.224 281.4);
Tailwind
colors: {
  custom: {
    50: '#9272e3',
    500: '#5238d4',
    950: '#000000',
  },
}
SCSS
$custom: #5238d4;
$custom-light: #9272e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5238d4",
  "rgb": {
    "r": 82,
    "g": 56,
    "b": 212
  },
  "hsl": {
    "h": 250,
    "s": 64.463,
    "l": 52.549
  },
  "oklch": {
    "l": 0.47768,
    "c": 0.22356,
    "h": 281.4
  },
  "luminance": 0.09376
}

Semantic roles & 50–950 ramp

primary
#5238D4
secondary
#CAD692
accent
#E740CC
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #5238D4

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

Preview Lab → · Contrast checker → · Palette generator →

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