#5F38CC#5F38CC

#5F38CC is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.2% C 0.213 H 287.6°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#5F38CC
RGBrgb(95, 56, 204)
HSLhsl(256, 59%, 51%)
HSVhsv(256, 73%, 80%)
CMYKcmyk(53.4%, 72.5%, 0%, 20%)
CIE-LABlab(37.15, 52.77, -70.55)
CIE-LCHlch(37.15, 88.11, 306.80°)
OKLaboklab(48.16% 0.0644 -0.2029)
OKLCHoklch(48.16% 0.213 287.6)
XYZxyz(17.0293, 9.6200, 58.0746)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F38CC #A5CC38
analogous
#385BCC #5F38CC #A938CC
triadic
#5F38CC #CC5F38 #38CC5F
tetradic
#5F38CC #CC385B #A5CC38 #38CCA9
square
#5F38CC #CC385B #A5CC38 #38CCA9
split-complementary
#5F38CC #CCA938 #5BCC38
monochromatic
#321C6E #48299E #5F38CC #8669D8 #AD99E5

Accessibility & contrast

On white

7.18
#5F38CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5F38CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F38CC
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F38CC#FFFFFF#000000##FFFFFF
##5F38CC1.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD0
Deuteranopia (green-blind)
#0053C9
Tritanopia (blue-blind)
#33607F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f38cc;
/* rgb */ color: rgb(95, 56, 204);
/* oklch */ color: oklch(48.2% 0.213 287.6);
Tailwind
colors: {
  custom: {
    50: '#9772dd',
    500: '#5f38cc',
    950: '#000000',
  },
}
SCSS
$custom: #5f38cc;
$custom-light: #9772dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f38cc",
  "rgb": {
    "r": 95,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 255.811,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48157,
    "c": 0.21284,
    "h": 287.6
  },
  "luminance": 0.09621
}

Semantic roles & 50–950 ramp

primary
#5F38CC
secondary
#BFD18F
accent
#E245B9
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F38CC

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

Preview Lab → · Contrast checker → · Palette generator →

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