#5F38BD#5F38BD

#5F38BD is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.8% C 0.195 H 290.2°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#5F38BD
RGBrgb(95, 56, 189)
HSLhsl(258, 54%, 48%)
HSVhsv(258, 70%, 74%)
CMYKcmyk(49.7%, 70.4%, 0%, 25.9%)
CIE-LABlab(35.86, 48.56, -63.91)
CIE-LCHlch(35.86, 80.26, 307.23°)
OKLaboklab(46.84% 0.0675 -0.1834)
OKLCHoklch(46.84% 0.195 290.2)
XYZxyz(15.3162, 8.9347, 49.0518)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F38BD #96BD38
analogous
#3853BD #5F38BD #A138BD
triadic
#5F38BD #BD5F38 #38BD5F
tetradic
#5F38BD #BD3853 #96BD38 #38BDA1
square
#5F38BD #BD3853 #96BD38 #38BDA1
split-complementary
#5F38BD #BDA138 #53BD38
monochromatic
#301C5F #472A8E #5F38BD #8262D0 #A891DE

Accessibility & contrast

On white

7.53
#5F38BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5F38BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F38BD
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F38BD#FFFFFF#000000##FFFFFF
##5F38BD1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C1
Deuteranopia (green-blind)
#0051BA
Tritanopia (blue-blind)
#3F5A76
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f38bd;
/* rgb */ color: rgb(95, 56, 189);
/* oklch */ color: oklch(46.8% 0.195 290.2);
Tailwind
colors: {
  custom: {
    50: '#9572d2',
    500: '#5f38bd',
    950: '#000000',
  },
}
SCSS
$custom: #5f38bd;
$custom-light: #9572d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f38bd",
  "rgb": {
    "r": 95,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 257.594,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46841,
    "c": 0.19541,
    "h": 290.2
  },
  "luminance": 0.08935
}

Semantic roles & 50–950 ramp

primary
#5F38BD
secondary
#B6C987
accent
#DE4AB2
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F38BD

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

Preview Lab → · Contrast checker → · Palette generator →

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