#5F38DA#5F38DA

#5F38DA is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.4% C 0.229 H 285.5°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#5F38DA
RGBrgb(95, 56, 218)
HSLhsl(254, 69%, 54%)
HSVhsv(254, 74%, 85%)
CMYKcmyk(56.4%, 74.3%, 0%, 14.5%)
CIE-LABlab(38.41, 56.70, -76.56)
CIE-LCHlch(38.41, 95.27, 306.52°)
OKLaboklab(49.43% 0.0611 -0.2205)
OKLCHoklch(49.43% 0.229 285.5)
XYZxyz(18.7845, 10.3221, 67.3186)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F38DA #B3DA38
analogous
#3862DA #5F38DA #B038DA
triadic
#5F38DA #DA5F38 #38DA5F
tetradic
#5F38DA #DA3862 #B3DA38 #38DAB0
square
#5F38DA #DA3862 #B3DA38 #38DAB0
split-complementary
#5F38DA #DAB038 #62DA38
monochromatic
#311880 #4521B3 #5F38DA #886CE4 #B29FED

Accessibility & contrast

On white

6.85
#5F38DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5F38DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F38DA
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F38DA#FFFFFF#000000##FFFFFF
##5F38DA1.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDF
Deuteranopia (green-blind)
#0055D7
Tritanopia (blue-blind)
#216587
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5f38da;
/* rgb */ color: rgb(95, 56, 218);
/* oklch */ color: oklch(49.4% 0.229 285.5);
Tailwind
colors: {
  custom: {
    50: '#9973e7',
    500: '#5f38da',
    950: '#000000',
  },
}
SCSS
$custom: #5f38da;
$custom-light: #9973e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f38da",
  "rgb": {
    "r": 95,
    "g": 56,
    "b": 218
  },
  "hsl": {
    "h": 254.444,
    "s": 68.644,
    "l": 53.725
  },
  "oklch": {
    "l": 0.49432,
    "c": 0.22877,
    "h": 285.5
  },
  "luminance": 0.10323
}

Semantic roles & 50–950 ramp

primary
#5F38DA
secondary
#C9DA94
accent
#EB3CC1
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5F38DA

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

Preview Lab → · Contrast checker → · Palette generator →

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