#5F38BC#5F38BC

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

Color values

HEX#5F38BC
RGBrgb(95, 56, 188)
HSLhsl(258, 54%, 48%)
HSVhsv(258, 70%, 74%)
CMYKcmyk(49.5%, 70.2%, 0%, 26.3%)
CIE-LABlab(35.77, 48.28, -63.46)
CIE-LCHlch(35.77, 79.73, 307.26°)
OKLaboklab(46.76% 0.0677 -0.1821)
OKLCHoklch(46.76% 0.194 290.4)
XYZxyz(15.2080, 8.8915, 48.4821)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F38BC #95BC38
analogous
#3853BC #5F38BC #A138BC
triadic
#5F38BC #BC5F38 #38BC5F
tetradic
#5F38BC #BC3853 #95BC38 #38BCA1
square
#5F38BC #BC3853 #95BC38 #38BCA1
split-complementary
#5F38BC #BCA138 #53BC38
monochromatic
#2F1C5E #472A8D #5F38BC #8261D0 #A790DE

Accessibility & contrast

On white

7.56
#5F38BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5F38BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F38BC
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F38BC#FFFFFF#000000##FFFFFF
##5F38BC1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C0
Deuteranopia (green-blind)
#0051B9
Tritanopia (blue-blind)
#405A76
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f38bc;
/* rgb */ color: rgb(95, 56, 188);
/* oklch */ color: oklch(46.8% 0.194 290.4);
Tailwind
colors: {
  custom: {
    50: '#9572d1',
    500: '#5f38bc',
    950: '#000000',
  },
}
SCSS
$custom: #5f38bc;
$custom-light: #9572d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f38bc",
  "rgb": {
    "r": 95,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 257.727,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46755,
    "c": 0.19424,
    "h": 290.4
  },
  "luminance": 0.08892
}

Semantic roles & 50–950 ramp

primary
#5F38BC
secondary
#B5C987
accent
#DD4AB2
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F38BC

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

Preview Lab → · Contrast checker → · Palette generator →

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