#5238C0#5238C0

#5238C0 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.9% C 0.200 H 284.0°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#5238C0
RGBrgb(82, 56, 192)
HSLhsl(251, 55%, 49%)
HSVhsv(251, 71%, 75%)
CMYKcmyk(57.3%, 70.8%, 0%, 24.7%)
CIE-LABlab(34.86, 47.37, -67.36)
CIE-LCHlch(34.86, 82.35, 305.12°)
OKLaboklab(45.91% 0.0484 -0.1939)
OKLCHoklch(45.91% 0.2 284)
XYZxyz(14.4054, 8.4271, 50.7265)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5238C0 #A6C038
analogous
#3862C0 #5238C0 #9638C0
triadic
#5238C0 #C05238 #38C052
tetradic
#5238C0 #C03862 #A6C038 #38C096
square
#5238C0 #C03862 #A6C038 #38C096
split-complementary
#5238C0 #C09638 #62C038
monochromatic
#2A1C61 #3E2A91 #5238C0 #7964D2 #A293DF

Accessibility & contrast

On white

7.82
#5238C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5238C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5238C0
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5238C0#FFFFFF#000000##FFFFFF
##5238C01.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C4
Deuteranopia (green-blind)
#004EBD
Tritanopia (blue-blind)
#175C78
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5238c0;
/* rgb */ color: rgb(82, 56, 192);
/* oklch */ color: oklch(45.9% 0.200 284.0);
Tailwind
colors: {
  custom: {
    50: '#8e71d4',
    500: '#5238c0',
    950: '#000000',
  },
}
SCSS
$custom: #5238c0;
$custom-light: #8e71d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5238c0",
  "rgb": {
    "r": 82,
    "g": 56,
    "b": 192
  },
  "hsl": {
    "h": 251.471,
    "s": 54.839,
    "l": 48.627
  },
  "oklch": {
    "l": 0.45906,
    "c": 0.19987,
    "h": 284
  },
  "luminance": 0.08428
}

Semantic roles & 50–950 ramp

primary
#5238C0
secondary
#BECB89
accent
#DE4AC2
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5238C0

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

Preview Lab → · Contrast checker → · Palette generator →

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