#5238D2#5238D2

#5238D2 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.6% C 0.221 H 281.6°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#5238D2
RGBrgb(82, 56, 210)
HSLhsl(250, 63%, 52%)
HSVhsv(250, 73%, 82%)
CMYKcmyk(61%, 73.3%, 0%, 17.6%)
CIE-LABlab(36.51, 52.73, -75.13)
CIE-LCHlch(36.51, 91.79, 305.06°)
OKLaboklab(47.58% 0.0447 -0.2167)
OKLCHoklch(47.58% 0.221 281.6)
XYZxyz(16.5231, 9.2741, 61.8797)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5238D2 #B8D238
analogous
#386BD2 #5238D2 #9F38D2
triadic
#5238D2 #D25238 #38D252
tetradic
#5238D2 #D2386B #B8D238 #38D29F
square
#5238D2 #D2386B #B8D238 #38D29F
split-complementary
#5238D2 #D29F38 #6BD238
monochromatic
#2A1A75 #3C26A7 #5238D2 #7D6ADD #A99CE9

Accessibility & contrast

On white

7.36
#5238D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5238D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5238D2
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5238D2#FFFFFF#000000##FFFFFF
##5238D21.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD6
Deuteranopia (green-blind)
#0050CF
Tritanopia (blue-blind)
#006382
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5238d2;
/* rgb */ color: rgb(82, 56, 210);
/* oklch */ color: oklch(47.6% 0.221 281.6);
Tailwind
colors: {
  custom: {
    50: '#9172e1',
    500: '#5238d2',
    950: '#000000',
  },
}
SCSS
$custom: #5238d2;
$custom-light: #9172e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5238d2",
  "rgb": {
    "r": 82,
    "g": 56,
    "b": 210
  },
  "hsl": {
    "h": 250.13,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.47578,
    "c": 0.22122,
    "h": 281.6
  },
  "luminance": 0.09275
}

Semantic roles & 50–950 ramp

primary
#5238D2
secondary
#C9D591
accent
#E642CA
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0815
muted
#7E7B84

Preview Lab

Preview with #5238D2

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

Preview Lab → · Contrast checker → · Palette generator →

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