#5F3FAF#5F3FAF

#5F3FAF is a mid, vivid violet. Relative luminance 0.091; OKLCH L 46.7% C 0.170 H 291.6°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#5F3FAF
RGBrgb(95, 63, 175)
HSLhsl(257, 47%, 47%)
HSVhsv(257, 64%, 69%)
CMYKcmyk(45.7%, 64%, 0%, 31.4%)
CIE-LABlab(36.14, 40.76, -55.17)
CIE-LCHlch(36.14, 68.59, 306.46°)
OKLaboklab(46.7% 0.0625 -0.1577)
OKLCHoklch(46.7% 0.17 291.6)
XYZxyz(14.2325, 9.0826, 41.5523)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3FAF #8FAF3F
analogous
#3F57AF #5F3FAF #973FAF
triadic
#5F3FAF #AF5F3F #3FAF5F
tetradic
#5F3FAF #AF3F57 #8FAF3F #3FAF97
square
#5F3FAF #AF3F57 #8FAF3F #3FAF97
split-complementary
#5F3FAF #AF973F #57AF3F
monochromatic
#2E1F55 #472F82 #5F3FAF #8064C7 #A591D7

Accessibility & contrast

On white

7.46
#5F3FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5F3FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3FAF
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3FAF#FFFFFF#000000##FFFFFF
##5F3FAF1.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B3
Deuteranopia (green-blind)
#0053AD
Tritanopia (blue-blind)
#475971
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f3faf;
/* rgb */ color: rgb(95, 63, 175);
/* oklch */ color: oklch(46.7% 0.170 291.6);
Tailwind
colors: {
  custom: {
    50: '#9376c8',
    500: '#5f3faf',
    950: '#000000',
  },
}
SCSS
$custom: #5f3faf;
$custom-light: #9376c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3faf",
  "rgb": {
    "r": 95,
    "g": 63,
    "b": 175
  },
  "hsl": {
    "h": 257.143,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.46698,
    "c": 0.16963,
    "h": 291.6
  },
  "luminance": 0.09083
}

Semantic roles & 50–950 ramp

primary
#5F3FAF
secondary
#B2C387
accent
#D751B1
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F3FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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