#5F39CA#5F39CA

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

Color values

HEX#5F39CA
RGBrgb(95, 57, 202)
HSLhsl(256, 58%, 51%)
HSVhsv(256, 72%, 79%)
CMYKcmyk(53%, 71.8%, 0%, 20.8%)
CIE-LABlab(37.16, 51.70, -69.38)
CIE-LCHlch(37.16, 86.53, 306.69°)
OKLaboklab(48.11% 0.064 -0.1994)
OKLCHoklch(48.11% 0.209 287.8)
XYZxyz(16.8400, 9.6226, 56.8357)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F39CA #A4CA39
analogous
#395BCA #5F39CA #A739CA
triadic
#5F39CA #CA5F39 #39CA5F
tetradic
#5F39CA #CA395B #A4CA39 #39CAA7
square
#5F39CA #CA395B #A4CA39 #39CAA7
split-complementary
#5F39CA #CAA739 #5BCA39
monochromatic
#321D6C #482A9C #5F39CA #8669D7 #AD9AE4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F39CA#FFFFFF#000000##FFFFFF
##5F39CA1.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)
#005BCE
Deuteranopia (green-blind)
#0053C7
Tritanopia (blue-blind)
#34607E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f39ca;
/* rgb */ color: rgb(95, 57, 202);
/* oklch */ color: oklch(48.1% 0.209 287.8);
Tailwind
colors: {
  custom: {
    50: '#9773db',
    500: '#5f39ca',
    950: '#000000',
  },
}
SCSS
$custom: #5f39ca;
$custom-light: #9773db;
$custom-dark: #000000;
JSON
{
  "hex": "#5f39ca",
  "rgb": {
    "r": 95,
    "g": 57,
    "b": 202
  },
  "hsl": {
    "h": 255.724,
    "s": 57.769,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48106,
    "c": 0.20947,
    "h": 287.8
  },
  "luminance": 0.09623
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F39CA

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

Preview Lab → · Contrast checker → · Palette generator →

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