#5F38CB#5F38CB

#5F38CB is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.1% C 0.212 H 287.8°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#5F38CB
RGBrgb(95, 56, 203)
HSLhsl(256, 59%, 51%)
HSVhsv(256, 72%, 80%)
CMYKcmyk(53.2%, 72.4%, 0%, 20.4%)
CIE-LABlab(37.06, 52.49, -70.12)
CIE-LCHlch(37.06, 87.59, 306.82°)
OKLaboklab(48.07% 0.0646 -0.2016)
OKLCHoklch(48.07% 0.212 287.8)
XYZxyz(16.9098, 9.5722, 57.4449)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F38CB #A4CB38
analogous
#385ACB #5F38CB #A838CB
triadic
#5F38CB #CB5F38 #38CB5F
tetradic
#5F38CB #CB385A #A4CB38 #38CBA8
square
#5F38CB #CB385A #A4CB38 #38CBA8
split-complementary
#5F38CB #CBA838 #5ACB38
monochromatic
#321C6C #48299D #5F38CB #8669D8 #AD99E4

Accessibility & contrast

On white

7.21
#5F38CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5F38CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F38CB
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F38CB#FFFFFF#000000##FFFFFF
##5F38CB1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCF
Deuteranopia (green-blind)
#0053C8
Tritanopia (blue-blind)
#34607E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f38cb;
/* rgb */ color: rgb(95, 56, 203);
/* oklch */ color: oklch(48.1% 0.212 287.8);
Tailwind
colors: {
  custom: {
    50: '#9772dc',
    500: '#5f38cb',
    950: '#000000',
  },
}
SCSS
$custom: #5f38cb;
$custom-light: #9772dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f38cb",
  "rgb": {
    "r": 95,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 255.918,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48067,
    "c": 0.2117,
    "h": 287.8
  },
  "luminance": 0.09573
}

Semantic roles & 50–950 ramp

primary
#5F38CB
secondary
#BFD08F
accent
#E246B8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F38CB

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

Preview Lab → · Contrast checker → · Palette generator →

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