#5F38BB#5F38BB

#5F38BB is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.7% C 0.193 H 290.6°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#5F38BB
RGBrgb(95, 56, 187)
HSLhsl(258, 54%, 48%)
HSVhsv(258, 70%, 73%)
CMYKcmyk(49.2%, 70.1%, 0%, 26.7%)
CIE-LABlab(35.69, 48.00, -63.00)
CIE-LCHlch(35.69, 79.20, 307.30°)
OKLaboklab(46.67% 0.0679 -0.1807)
OKLCHoklch(46.67% 0.193 290.6)
XYZxyz(15.1006, 8.8485, 47.9164)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F38BB #94BB38
analogous
#3852BB #5F38BB #A138BB
triadic
#5F38BB #BB5F38 #38BB5F
tetradic
#5F38BB #BB3852 #94BB38 #38BBA1
square
#5F38BB #BB3852 #94BB38 #38BBA1
split-complementary
#5F38BB #BBA138 #52BB38
monochromatic
#2F1C5D #472A8C #5F38BB #8261D0 #A790DE

Accessibility & contrast

On white

7.58
#5F38BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5F38BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F38BB
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F38BB#FFFFFF#000000##FFFFFF
##5F38BB1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BF
Deuteranopia (green-blind)
#0051B8
Tritanopia (blue-blind)
#405A75
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f38bb;
/* rgb */ color: rgb(95, 56, 187);
/* oklch */ color: oklch(46.7% 0.193 290.6);
Tailwind
colors: {
  custom: {
    50: '#9572d0',
    500: '#5f38bb',
    950: '#000000',
  },
}
SCSS
$custom: #5f38bb;
$custom-light: #9572d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f38bb",
  "rgb": {
    "r": 95,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 257.863,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.4667,
    "c": 0.19305,
    "h": 290.6
  },
  "luminance": 0.08849
}

Semantic roles & 50–950 ramp

primary
#5F38BB
secondary
#B5C886
accent
#DD4BB2
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5F38BB

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

Preview Lab → · Contrast checker → · Palette generator →

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