#5D38E0#5D38E0

#5D38E0 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.8% C 0.236 H 283.9°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#5D38E0
RGBrgb(93, 56, 224)
HSLhsl(253, 73%, 55%)
HSVhsv(253, 75%, 88%)
CMYKcmyk(58.5%, 75%, 0%, 12.2%)
CIE-LABlab(38.79, 58.13, -79.39)
CIE-LCHlch(38.79, 98.40, 306.21°)
OKLaboklab(49.82% 0.0567 -0.2288)
OKLCHoklch(49.82% 0.236 283.9)
XYZxyz(19.3788, 10.5361, 71.5191)
Luminance0.1054 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D38E0 #BBE038
analogous
#3867E0 #5D38E0 #B138E0
triadic
#5D38E0 #E05D38 #38E05D
tetradic
#5D38E0 #E03867 #BBE038 #38E0B1
square
#5D38E0 #E03867 #BBE038 #38E0B1
split-complementary
#5D38E0 #E0B138 #67E038
monochromatic
#2F1588 #411DBD #5D38E0 #886DE8 #B3A2F0

Accessibility & contrast

On white

6.76
#5D38E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#5D38E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D38E0
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D38E0#FFFFFF#000000##FFFFFF
##5D38E01.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060E5
Deuteranopia (green-blind)
#0056DD
Tritanopia (blue-blind)
#04688A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5d38e0;
/* rgb */ color: rgb(93, 56, 224);
/* oklch */ color: oklch(49.8% 0.236 283.9);
Tailwind
colors: {
  custom: {
    50: '#9973eb',
    500: '#5d38e0',
    950: '#000000',
  },
}
SCSS
$custom: #5d38e0;
$custom-light: #9973eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d38e0",
  "rgb": {
    "r": 93,
    "g": 56,
    "b": 224
  },
  "hsl": {
    "h": 253.214,
    "s": 73.043,
    "l": 54.902
  },
  "oklch": {
    "l": 0.49818,
    "c": 0.23572,
    "h": 283.9
  },
  "luminance": 0.10537
}

Semantic roles & 50–950 ramp

primary
#5D38E0
secondary
#CEDD97
accent
#F038C7
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5D38E0

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

Preview Lab → · Contrast checker → · Palette generator →

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