#5F3FCC#5F3FCC

#5F3FCC is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.1% C 0.205 H 286.6°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#5F3FCC
RGBrgb(95, 63, 204)
HSLhsl(254, 58%, 52%)
HSVhsv(254, 69%, 80%)
CMYKcmyk(53.4%, 69.1%, 0%, 20%)
CIE-LABlab(38.46, 49.14, -68.42)
CIE-LCHlch(38.46, 84.23, 305.69°)
OKLaboklab(49.09% 0.0585 -0.1966)
OKLCHoklch(49.09% 0.205 286.6)
XYZxyz(17.3927, 10.3466, 58.1957)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3FCC #ACCC3F
analogous
#3F66CC #5F3FCC #A63FCC
triadic
#5F3FCC #CC5F3F #3FCC5F
tetradic
#5F3FCC #CC3F66 #ACCC3F #3FCCA6
square
#5F3FCC #CC3F66 #ACCC3F #3FCCA6
split-complementary
#5F3FCC #CCA63F #66CC3F
monochromatic
#311E72 #462BA3 #5F3FCC #876FD9 #B0A0E6

Accessibility & contrast

On white

6.84
#5F3FCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#5F3FCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3FCC
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3FCC#FFFFFF#000000##FFFFFF
##5F3FCC1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED0
Deuteranopia (green-blind)
#0056C9
Tritanopia (blue-blind)
#326481
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5f3fcc;
/* rgb */ color: rgb(95, 63, 204);
/* oklch */ color: oklch(49.1% 0.205 286.6);
Tailwind
colors: {
  custom: {
    50: '#9777dd',
    500: '#5f3fcc',
    950: '#000000',
  },
}
SCSS
$custom: #5f3fcc;
$custom-light: #9777dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3fcc",
  "rgb": {
    "r": 95,
    "g": 63,
    "b": 204
  },
  "hsl": {
    "h": 253.617,
    "s": 58.025,
    "l": 52.353
  },
  "oklch": {
    "l": 0.49085,
    "c": 0.20516,
    "h": 286.6
  },
  "luminance": 0.10348
}

Semantic roles & 50–950 ramp

primary
#5F3FCC
secondary
#C4D295
accent
#E147BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5F3FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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