#5F38D5#5F38D5

#5F38D5 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.0% C 0.223 H 286.2°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#5F38D5
RGBrgb(95, 56, 213)
HSLhsl(255, 65%, 53%)
HSVhsv(255, 74%, 84%)
CMYKcmyk(55.4%, 73.7%, 0%, 16.5%)
CIE-LABlab(37.96, 55.30, -74.44)
CIE-LCHlch(37.96, 92.73, 306.61°)
OKLaboklab(48.97% 0.0623 -0.2142)
OKLCHoklch(48.97% 0.223 286.2)
XYZxyz(18.1401, 10.0643, 63.9246)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F38D5 #AED538
analogous
#3860D5 #5F38D5 #AD38D5
triadic
#5F38D5 #D55F38 #38D55F
tetradic
#5F38D5 #D53860 #AED538 #38D5AD
square
#5F38D5 #D53860 #AED538 #38D5AD
split-complementary
#5F38D5 #D5AD38 #60D538
monochromatic
#311A79 #4624AC #5F38D5 #886BE0 #B09DEA

Accessibility & contrast

On white

6.97
#5F38D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5F38D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F38D5
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F38D5#FFFFFF#000000##FFFFFF
##5F38D51.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DDA
Deuteranopia (green-blind)
#0055D2
Tritanopia (blue-blind)
#286384
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5f38d5;
/* rgb */ color: rgb(95, 56, 213);
/* oklch */ color: oklch(49.0% 0.223 286.2);
Tailwind
colors: {
  custom: {
    50: '#9873e3',
    500: '#5f38d5',
    950: '#000000',
  },
}
SCSS
$custom: #5f38d5;
$custom-light: #9873e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f38d5",
  "rgb": {
    "r": 95,
    "g": 56,
    "b": 213
  },
  "hsl": {
    "h": 254.904,
    "s": 65.145,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48971,
    "c": 0.22312,
    "h": 286.2
  },
  "luminance": 0.10065
}

Semantic roles & 50–950 ramp

primary
#5F38D5
secondary
#C6D692
accent
#E840BE
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5F38D5

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

Preview Lab → · Contrast checker → · Palette generator →

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