#5A38DF#5A38DF

#5A38DF is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.5% C 0.235 H 283.0°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#5A38DF
RGBrgb(90, 56, 223)
HSLhsl(252, 72%, 55%)
HSVhsv(252, 75%, 87%)
CMYKcmyk(59.6%, 74.9%, 0%, 12.5%)
CIE-LABlab(38.43, 57.48, -79.43)
CIE-LCHlch(38.43, 98.04, 305.89°)
OKLaboklab(49.47% 0.0528 -0.229)
OKLCHoklch(49.47% 0.235 283)
XYZxyz(18.9458, 10.3284, 70.7930)
Luminance0.1033 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A38DF #BDDF38
analogous
#3869DF #5A38DF #AE38DF
triadic
#5A38DF #DF5A38 #38DF5A
tetradic
#5A38DF #DF3869 #BDDF38 #38DFAE
square
#5A38DF #DF3869 #BDDF38 #38DFAE
split-complementary
#5A38DF #DFAE38 #69DF38
monochromatic
#2D1687 #3E1EBC #5A38DF #866DE7 #B1A1F0

Accessibility & contrast

On white

6.85
#5A38DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#5A38DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A38DF
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A38DF#FFFFFF#000000##FFFFFF
##5A38DF1.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060E4
Deuteranopia (green-blind)
#0055DC
Tritanopia (blue-blind)
#006889
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5a38df;
/* rgb */ color: rgb(90, 56, 223);
/* oklch */ color: oklch(49.5% 0.235 283.0);
Tailwind
colors: {
  custom: {
    50: '#9773ea',
    500: '#5a38df',
    950: '#000000',
  },
}
SCSS
$custom: #5a38df;
$custom-light: #9773ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5a38df",
  "rgb": {
    "r": 90,
    "g": 56,
    "b": 223
  },
  "hsl": {
    "h": 252.216,
    "s": 72.294,
    "l": 54.706
  },
  "oklch": {
    "l": 0.4947,
    "c": 0.23498,
    "h": 283
  },
  "luminance": 0.1033
}

Semantic roles & 50–950 ramp

primary
#5A38DF
secondary
#CEDD96
accent
#EF39CA
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5A38DF

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

Preview Lab → · Contrast checker → · Palette generator →

#5A38DF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva