#5F38BA#5F38BA

#5F38BA is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.6% C 0.192 H 290.8°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#5F38BA
RGBrgb(95, 56, 186)
HSLhsl(258, 54%, 47%)
HSVhsv(258, 70%, 73%)
CMYKcmyk(48.9%, 69.9%, 0%, 27.1%)
CIE-LABlab(35.61, 47.72, -62.55)
CIE-LCHlch(35.61, 78.67, 307.34°)
OKLaboklab(46.59% 0.0681 -0.1794)
OKLCHoklch(46.59% 0.192 290.8)
XYZxyz(14.9939, 8.8058, 47.3545)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F38BA #93BA38
analogous
#3852BA #5F38BA #A038BA
triadic
#5F38BA #BA5F38 #38BA5F
tetradic
#5F38BA #BA3852 #93BA38 #38BAA0
square
#5F38BA #BA3852 #93BA38 #38BAA0
split-complementary
#5F38BA #BAA038 #52BA38
monochromatic
#2F1C5C #472A8B #5F38BA #8160CF #A78FDD

Accessibility & contrast

On white

7.61
#5F38BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5F38BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F38BA
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F38BA#FFFFFF#000000##FFFFFF
##5F38BA1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#0051B7
Tritanopia (blue-blind)
#415975
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f38ba;
/* rgb */ color: rgb(95, 56, 186);
/* oklch */ color: oklch(46.6% 0.192 290.8);
Tailwind
colors: {
  custom: {
    50: '#9572d0',
    500: '#5f38ba',
    950: '#000000',
  },
}
SCSS
$custom: #5f38ba;
$custom-light: #9572d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f38ba",
  "rgb": {
    "r": 95,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 258,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46585,
    "c": 0.19188,
    "h": 290.8
  },
  "luminance": 0.08806
}

Semantic roles & 50–950 ramp

primary
#5F38BA
secondary
#B4C886
accent
#DD4BB1
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5F38BA

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

Preview Lab → · Contrast checker → · Palette generator →

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