#5F107E#5F107E

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

Color values

HEX#5F107E
RGBrgb(95, 16, 126)
HSLhsl(283, 77%, 28%)
HSVhsv(283, 87%, 49%)
CMYKcmyk(24.6%, 87.3%, 0%, 50.6%)
CIE-LABlab(24.67, 49.77, -43.77)
CIE-LCHlch(24.67, 66.28, 318.67°)
OKLaboklab(37.33% 0.1171 -0.124)
OKLCHoklch(37.33% 0.171 313.4)
XYZxyz(8.6698, 4.3101, 20.1099)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F107E #2F7E10
analogous
#28107E #5F107E #7E1066
triadic
#5F107E #7E5F10 #107E5F
tetradic
#5F107E #7E2810 #2F7E10 #10667E
square
#5F107E #7E2810 #2F7E10 #10667E
split-complementary
#5F107E #667E10 #107E28
monochromatic
#14031B #360948 #5F107E #8817B4 #AE25E3

Accessibility & contrast

On white

11.28
#5F107E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5F107E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F107E
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F107E#FFFFFF#000000##FFFFFF
##5F107E1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#5C2D49
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f107e;
/* rgb */ color: rgb(95, 16, 126);
/* oklch */ color: oklch(37.3% 0.171 313.4);
Tailwind
colors: {
  custom: {
    50: '#915ba4',
    500: '#5f107e',
    950: '#000000',
  },
}
SCSS
$custom: #5f107e;
$custom-light: #915ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f107e",
  "rgb": {
    "r": 95,
    "g": 16,
    "b": 126
  },
  "hsl": {
    "h": 283.091,
    "s": 77.465,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3733,
    "c": 0.17056,
    "h": 313.4
  },
  "luminance": 0.0431
}

Semantic roles & 50–950 ramp

primary
#5F107E
secondary
#59B436
accent
#F4346A
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5F107E

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

Preview Lab → · Contrast checker → · Palette generator →

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