#5F38CA#5F38CA

#5F38CA is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.0% C 0.211 H 287.9°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#5F38CA
RGBrgb(95, 56, 202)
HSLhsl(256, 58%, 51%)
HSVhsv(256, 72%, 79%)
CMYKcmyk(53%, 72.3%, 0%, 20.8%)
CIE-LABlab(36.98, 52.21, -69.68)
CIE-LCHlch(36.98, 87.07, 306.84°)
OKLaboklab(47.98% 0.0648 -0.2003)
OKLCHoklch(47.98% 0.211 287.9)
XYZxyz(16.7910, 9.5247, 56.8194)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F38CA #A3CA38
analogous
#385ACA #5F38CA #A838CA
triadic
#5F38CA #CA5F38 #38CA5F
tetradic
#5F38CA #CA385A #A3CA38 #38CAA8
square
#5F38CA #CA385A #A3CA38 #38CAA8
split-complementary
#5F38CA #CAA838 #5ACA38
monochromatic
#321D6B #48299B #5F38CA #8668D7 #AD99E4

Accessibility & contrast

On white

7.23
#5F38CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F38CA
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F38CA#FFFFFF#000000##FFFFFF
##5F38CA1.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACE
Deuteranopia (green-blind)
#0053C7
Tritanopia (blue-blind)
#355F7E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f38ca;
/* rgb */ color: rgb(95, 56, 202);
/* oklch */ color: oklch(48.0% 0.211 287.9);
Tailwind
colors: {
  custom: {
    50: '#9772db',
    500: '#5f38ca',
    950: '#000000',
  },
}
SCSS
$custom: #5f38ca;
$custom-light: #9772db;
$custom-dark: #000000;
JSON
{
  "hex": "#5f38ca",
  "rgb": {
    "r": 95,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 256.027,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47978,
    "c": 0.21054,
    "h": 287.9
  },
  "luminance": 0.09526
}

Semantic roles & 50–950 ramp

primary
#5F38CA
secondary
#BECF8E
accent
#E147B8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F38CA

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

Preview Lab → · Contrast checker → · Palette generator →

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