#5A38CF#5A38CF

#5A38CF is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.0% C 0.217 H 285.1°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#5A38CF
RGBrgb(90, 56, 207)
HSLhsl(254, 61%, 52%)
HSVhsv(254, 73%, 81%)
CMYKcmyk(56.5%, 72.9%, 0%, 18.8%)
CIE-LABlab(36.94, 52.91, -72.66)
CIE-LCHlch(36.94, 89.88, 306.06°)
OKLaboklab(47.98% 0.0566 -0.2092)
OKLCHoklch(47.98% 0.217 285.1)
XYZxyz(16.8897, 9.5060, 59.9642)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A38CF #ADCF38
analogous
#3862CF #5A38CF #A638CF
triadic
#5A38CF #CF5A38 #38CF5A
tetradic
#5A38CF #CF3862 #ADCF38 #38CFA6
square
#5A38CF #CF3862 #ADCF38 #38CFA6
split-complementary
#5A38CF #CFA638 #62CF38
monochromatic
#2F1B71 #4327A3 #5A38CF #8369DB #AC9BE7

Accessibility & contrast

On white

7.24
#5A38CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5A38CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A38CF
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A38CF#FFFFFF#000000##FFFFFF
##5A38CF1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD3
Deuteranopia (green-blind)
#0052CC
Tritanopia (blue-blind)
#1F6280
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5a38cf;
/* rgb */ color: rgb(90, 56, 207);
/* oklch */ color: oklch(48.0% 0.217 285.1);
Tailwind
colors: {
  custom: {
    50: '#9572df',
    500: '#5a38cf',
    950: '#000000',
  },
}
SCSS
$custom: #5a38cf;
$custom-light: #9572df;
$custom-dark: #000000;
JSON
{
  "hex": "#5a38cf",
  "rgb": {
    "r": 90,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 253.51,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.47975,
    "c": 0.2167,
    "h": 285.1
  },
  "luminance": 0.09507
}

Semantic roles & 50–950 ramp

primary
#5A38CF
secondary
#C4D390
accent
#E444C0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5A38CF

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

Preview Lab → · Contrast checker → · Palette generator →

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