#5F38BE#5F38BE

#5F38BE is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.9% C 0.197 H 290.0°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#5F38BE
RGBrgb(95, 56, 190)
HSLhsl(257, 54%, 48%)
HSVhsv(257, 71%, 75%)
CMYKcmyk(50%, 70.5%, 0%, 25.5%)
CIE-LABlab(35.94, 48.84, -64.36)
CIE-LCHlch(35.94, 80.79, 307.19°)
OKLaboklab(46.93% 0.0673 -0.1847)
OKLCHoklch(46.93% 0.197 290)
XYZxyz(15.4251, 8.9783, 49.6254)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F38BE #97BE38
analogous
#3854BE #5F38BE #A238BE
triadic
#5F38BE #BE5F38 #38BE5F
tetradic
#5F38BE #BE3854 #97BE38 #38BEA2
square
#5F38BE #BE3854 #97BE38 #38BEA2
split-complementary
#5F38BE #BEA238 #54BE38
monochromatic
#301C5F #472A8F #5F38BE #8362D1 #A892DF

Accessibility & contrast

On white

7.51
#5F38BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5F38BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F38BE
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F38BE#FFFFFF#000000##FFFFFF
##5F38BE1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C2
Deuteranopia (green-blind)
#0051BB
Tritanopia (blue-blind)
#3E5B77
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f38be;
/* rgb */ color: rgb(95, 56, 190);
/* oklch */ color: oklch(46.9% 0.197 290.0);
Tailwind
colors: {
  custom: {
    50: '#9572d3',
    500: '#5f38be',
    950: '#000000',
  },
}
SCSS
$custom: #5f38be;
$custom-light: #9572d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f38be",
  "rgb": {
    "r": 95,
    "g": 56,
    "b": 190
  },
  "hsl": {
    "h": 257.463,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46927,
    "c": 0.19658,
    "h": 290
  },
  "luminance": 0.08979
}

Semantic roles & 50–950 ramp

primary
#5F38BE
secondary
#B7CA88
accent
#DE4AB3
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F38BE

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

Preview Lab → · Contrast checker → · Palette generator →

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