#5F38CF#5F38CF

#5F38CF is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.4% C 0.216 H 287.1°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#5F38CF
RGBrgb(95, 56, 207)
HSLhsl(255, 61%, 52%)
HSVhsv(255, 73%, 81%)
CMYKcmyk(54.1%, 72.9%, 0%, 18.8%)
CIE-LABlab(37.42, 53.62, -71.86)
CIE-LCHlch(37.42, 89.66, 306.73°)
OKLaboklab(48.43% 0.0637 -0.2067)
OKLCHoklch(48.43% 0.216 287.1)
XYZxyz(17.3926, 9.7653, 59.9878)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F38CF #A8CF38
analogous
#385DCF #5F38CF #AB38CF
triadic
#5F38CF #CF5F38 #38CF5F
tetradic
#5F38CF #CF385D #A8CF38 #38CFAB
square
#5F38CF #CF385D #A8CF38 #38CFAB
split-complementary
#5F38CF #CFAB38 #5DCF38
monochromatic
#321B71 #4727A3 #5F38CF #8769DB #AE9BE7

Accessibility & contrast

On white

7.11
#5F38CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5F38CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F38CF
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F38CF#FFFFFF#000000##FFFFFF
##5F38CF1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD3
Deuteranopia (green-blind)
#0054CC
Tritanopia (blue-blind)
#306180
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f38cf;
/* rgb */ color: rgb(95, 56, 207);
/* oklch */ color: oklch(48.4% 0.216 287.1);
Tailwind
colors: {
  custom: {
    50: '#9873df',
    500: '#5f38cf',
    950: '#000000',
  },
}
SCSS
$custom: #5f38cf;
$custom-light: #9873df;
$custom-dark: #000000;
JSON
{
  "hex": "#5f38cf",
  "rgb": {
    "r": 95,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 255.497,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48426,
    "c": 0.21628,
    "h": 287.1
  },
  "luminance": 0.09766
}

Semantic roles & 50–950 ramp

primary
#5F38CF
secondary
#C1D390
accent
#E444BB
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5F38CF

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

Preview Lab → · Contrast checker → · Palette generator →

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