#5F38D2#5F38D2

#5F38D2 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.7% C 0.220 H 286.7°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#5F38D2
RGBrgb(95, 56, 210)
HSLhsl(255, 63%, 52%)
HSVhsv(255, 73%, 82%)
CMYKcmyk(54.8%, 73.3%, 0%, 17.6%)
CIE-LABlab(37.69, 54.46, -73.15)
CIE-LCHlch(37.69, 91.20, 306.67°)
OKLaboklab(48.7% 0.063 -0.2105)
OKLCHoklch(48.7% 0.22 286.7)
XYZxyz(17.7629, 9.9134, 61.9378)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F38D2 #ABD238
analogous
#385ED2 #5F38D2 #AC38D2
triadic
#5F38D2 #D25F38 #38D25F
tetradic
#5F38D2 #D2385E #ABD238 #38D2AC
square
#5F38D2 #D2385E #ABD238 #38D2AC
split-complementary
#5F38D2 #D2AC38 #5ED238
monochromatic
#311A75 #4726A7 #5F38D2 #876ADD #AF9CE9

Accessibility & contrast

On white

7.04
#5F38D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5F38D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F38D2
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F38D2#FFFFFF#000000##FFFFFF
##5F38D21.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD6
Deuteranopia (green-blind)
#0054CF
Tritanopia (blue-blind)
#2C6282
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5f38d2;
/* rgb */ color: rgb(95, 56, 210);
/* oklch */ color: oklch(48.7% 0.220 286.7);
Tailwind
colors: {
  custom: {
    50: '#9873e1',
    500: '#5f38d2',
    950: '#000000',
  },
}
SCSS
$custom: #5f38d2;
$custom-light: #9873e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f38d2",
  "rgb": {
    "r": 95,
    "g": 56,
    "b": 210
  },
  "hsl": {
    "h": 255.195,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48698,
    "c": 0.21971,
    "h": 286.7
  },
  "luminance": 0.09914
}

Semantic roles & 50–950 ramp

primary
#5F38D2
secondary
#C3D591
accent
#E642BC
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0815
muted
#7F7B84

Preview Lab

Preview with #5F38D2

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

Preview Lab → · Contrast checker → · Palette generator →

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