#5F38D9#5F38D9

#5F38D9 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.3% C 0.228 H 285.6°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#5F38D9
RGBrgb(95, 56, 217)
HSLhsl(255, 68%, 54%)
HSVhsv(255, 74%, 85%)
CMYKcmyk(56.2%, 74.2%, 0%, 14.9%)
CIE-LABlab(38.32, 56.42, -76.14)
CIE-LCHlch(38.32, 94.77, 306.54°)
OKLaboklab(49.34% 0.0613 -0.2192)
OKLCHoklch(49.34% 0.228 285.6)
XYZxyz(18.6541, 10.2699, 66.6315)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F38D9 #B2D938
analogous
#3861D9 #5F38D9 #AF38D9
triadic
#5F38D9 #D95F38 #38D95F
tetradic
#5F38D9 #D93861 #B2D938 #38D9AF
square
#5F38D9 #D93861 #B2D938 #38D9AF
split-complementary
#5F38D9 #D9AF38 #61D938
monochromatic
#31187E #4522B2 #5F38D9 #886BE3 #B29FED

Accessibility & contrast

On white

6.88
#5F38D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5F38D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F38D9
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F38D9#FFFFFF#000000##FFFFFF
##5F38D91.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EDE
Deuteranopia (green-blind)
#0055D6
Tritanopia (blue-blind)
#236586
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5f38d9;
/* rgb */ color: rgb(95, 56, 217);
/* oklch */ color: oklch(49.3% 0.228 285.6);
Tailwind
colors: {
  custom: {
    50: '#9973e6',
    500: '#5f38d9',
    950: '#000000',
  },
}
SCSS
$custom: #5f38d9;
$custom-light: #9973e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f38d9",
  "rgb": {
    "r": 95,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 254.534,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49339,
    "c": 0.22765,
    "h": 285.6
  },
  "luminance": 0.10271
}

Semantic roles & 50–950 ramp

primary
#5F38D9
secondary
#C8D994
accent
#EB3DC1
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5F38D9

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

Preview Lab → · Contrast checker → · Palette generator →

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