#5F108D#5F108D

#5F108D is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.6% C 0.184 H 307.7°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#5F108D
RGBrgb(95, 16, 141)
HSLhsl(278, 80%, 31%)
HSVhsv(278, 89%, 55%)
CMYKcmyk(32.6%, 88.7%, 0%, 44.7%)
CIE-LABlab(25.94, 52.97, -51.12)
CIE-LCHlch(25.94, 73.61, 316.02°)
OKLaboklab(38.61% 0.1126 -0.1456)
OKLCHoklch(38.61% 0.184 307.7)
XYZxyz(9.7113, 4.7267, 25.5949)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F108D #3E8D10
analogous
#20108D #5F108D #8D107C
triadic
#5F108D #8D5F10 #108D5F
tetradic
#5F108D #8D2010 #3E8D10 #107C8D
square
#5F108D #8D2010 #3E8D10 #107C8D
split-complementary
#5F108D #7C8D10 #108D20
monochromatic
#15041F #3A0A56 #5F108D #8416C4 #A430E7

Accessibility & contrast

On white

10.79
#5F108D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5F108D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F108D
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F108D#FFFFFF#000000##FFFFFF
##5F108D1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#573552
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f108d;
/* rgb */ color: rgb(95, 16, 141);
/* oklch */ color: oklch(38.6% 0.184 307.7);
Tailwind
colors: {
  custom: {
    50: '#925caf',
    500: '#5f108d',
    950: '#000000',
  },
}
SCSS
$custom: #5f108d;
$custom-light: #925caf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f108d",
  "rgb": {
    "r": 95,
    "g": 16,
    "b": 141
  },
  "hsl": {
    "h": 277.92,
    "s": 79.618,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38605,
    "c": 0.18405,
    "h": 307.7
  },
  "luminance": 0.04727
}

Semantic roles & 50–950 ramp

primary
#5F108D
secondary
#6AC237
accent
#F6327A
background
#F9F5FA
surface
#F2E9F5
border
#CCC5CF
text
#0E0510
muted
#7E797F

Preview Lab

Preview with #5F108D

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

Preview Lab → · Contrast checker → · Palette generator →

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