#5F107F#5F107F

#5F107F is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.4% C 0.171 H 313.0°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#5F107F
RGBrgb(95, 16, 127)
HSLhsl(283, 78%, 28%)
HSVhsv(283, 87%, 50%)
CMYKcmyk(25.2%, 87.4%, 0%, 50.2%)
CIE-LABlab(24.75, 49.98, -44.27)
CIE-LCHlch(24.75, 66.77, 318.46°)
OKLaboklab(37.41% 0.1169 -0.1254)
OKLCHoklch(37.41% 0.171 313)
XYZxyz(8.7347, 4.3361, 20.4514)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F107F #307F10
analogous
#28107F #5F107F #7F1067
triadic
#5F107F #7F5F10 #107F5F
tetradic
#5F107F #7F2810 #307F10 #10677F
square
#5F107F #7F2810 #307F10 #10677F
split-complementary
#5F107F #677F10 #107F28
monochromatic
#14031B #360949 #5F107F #8817B5 #AD26E4

Accessibility & contrast

On white

11.25
#5F107F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5F107F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F107F
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F107F#FFFFFF#000000##FFFFFF
##5F107F1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#003C7D
Tritanopia (blue-blind)
#5B2E4A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f107f;
/* rgb */ color: rgb(95, 16, 127);
/* oklch */ color: oklch(37.4% 0.171 313.0);
Tailwind
colors: {
  custom: {
    50: '#915ba5',
    500: '#5f107f',
    950: '#000000',
  },
}
SCSS
$custom: #5f107f;
$custom-light: #915ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f107f",
  "rgb": {
    "r": 95,
    "g": 16,
    "b": 127
  },
  "hsl": {
    "h": 282.703,
    "s": 77.622,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37412,
    "c": 0.17145,
    "h": 313
  },
  "luminance": 0.04336
}

Semantic roles & 50–950 ramp

primary
#5F107F
secondary
#5AB536
accent
#F4346B
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5F107F

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

Preview Lab → · Contrast checker → · Palette generator →

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