#5F38C2#5F38C2

#5F38C2 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.3% C 0.201 H 289.3°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#5F38C2
RGBrgb(95, 56, 194)
HSLhsl(257, 55%, 49%)
HSVhsv(257, 71%, 76%)
CMYKcmyk(51%, 71.1%, 0%, 23.9%)
CIE-LABlab(36.28, 49.96, -66.15)
CIE-LCHlch(36.28, 82.90, 307.06°)
OKLaboklab(47.27% 0.0665 -0.19)
OKLCHoklch(47.27% 0.201 289.3)
XYZxyz(15.8683, 9.1556, 51.9596)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F38C2 #9BC238
analogous
#3856C2 #5F38C2 #A438C2
triadic
#5F38C2 #C25F38 #38C25F
tetradic
#5F38C2 #C23856 #9BC238 #38C2A4
square
#5F38C2 #C23856 #9BC238 #38C2A4
split-complementary
#5F38C2 #C2A438 #56C238
monochromatic
#301D63 #482A93 #5F38C2 #8465D2 #AA94E0

Accessibility & contrast

On white

7.42
#5F38C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5F38C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F38C2
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F38C2#FFFFFF#000000##FFFFFF
##5F38C21.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C6
Deuteranopia (green-blind)
#0052BF
Tritanopia (blue-blind)
#3B5C79
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f38c2;
/* rgb */ color: rgb(95, 56, 194);
/* oklch */ color: oklch(47.3% 0.201 289.3);
Tailwind
colors: {
  custom: {
    50: '#9672d6',
    500: '#5f38c2',
    950: '#000000',
  },
}
SCSS
$custom: #5f38c2;
$custom-light: #9672d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f38c2",
  "rgb": {
    "r": 95,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 256.957,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.47273,
    "c": 0.20127,
    "h": 289.3
  },
  "luminance": 0.09156
}

Semantic roles & 50–950 ramp

primary
#5F38C2
secondary
#B9CB8A
accent
#DF49B4
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F38C2

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

Preview Lab → · Contrast checker → · Palette generator →

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