#5F38D1#5F38D1

#5F38D1 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.6% C 0.219 H 286.8°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#5F38D1
RGBrgb(95, 56, 209)
HSLhsl(255, 62%, 52%)
HSVhsv(255, 73%, 82%)
CMYKcmyk(54.5%, 73.2%, 0%, 18%)
CIE-LABlab(37.60, 54.18, -72.72)
CIE-LCHlch(37.60, 90.68, 306.69°)
OKLaboklab(48.61% 0.0632 -0.2092)
OKLCHoklch(48.61% 0.219 286.8)
XYZxyz(17.6387, 9.8637, 61.2837)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F38D1 #AAD138
analogous
#385ED1 #5F38D1 #AC38D1
triadic
#5F38D1 #D15F38 #38D15F
tetradic
#5F38D1 #D1385E #AAD138 #38D1AC
square
#5F38D1 #D1385E #AAD138 #38D1AC
split-complementary
#5F38D1 #D1AC38 #5ED138
monochromatic
#311B74 #4726A6 #5F38D1 #876ADC #AF9BE8

Accessibility & contrast

On white

7.06
#5F38D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5F38D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F38D1
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F38D1#FFFFFF#000000##FFFFFF
##5F38D11.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD5
Deuteranopia (green-blind)
#0054CE
Tritanopia (blue-blind)
#2D6282
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f38d1;
/* rgb */ color: rgb(95, 56, 209);
/* oklch */ color: oklch(48.6% 0.219 286.8);
Tailwind
colors: {
  custom: {
    50: '#9873e0',
    500: '#5f38d1',
    950: '#000000',
  },
}
SCSS
$custom: #5f38d1;
$custom-light: #9873e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f38d1",
  "rgb": {
    "r": 95,
    "g": 56,
    "b": 209
  },
  "hsl": {
    "h": 255.294,
    "s": 62.449,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48607,
    "c": 0.21857,
    "h": 286.8
  },
  "luminance": 0.09865
}

Semantic roles & 50–950 ramp

primary
#5F38D1
secondary
#C3D491
accent
#E642BC
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5F38D1

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

Preview Lab → · Contrast checker → · Palette generator →

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