#5F118C#5F118C

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

Color values

HEX#5F118C
RGBrgb(95, 17, 140)
HSLhsl(278, 78%, 31%)
HSVhsv(278, 88%, 55%)
CMYKcmyk(32.1%, 87.9%, 0%, 45.1%)
CIE-LABlab(25.94, 52.48, -50.49)
CIE-LCHlch(25.94, 72.83, 316.11°)
OKLaboklab(38.58% 0.1124 -0.1437)
OKLCHoklch(38.58% 0.182 308)
XYZxyz(9.6524, 4.7274, 25.2098)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F118C #3E8C11
analogous
#22118C #5F118C #8C117B
triadic
#5F118C #8C5F11 #118C5F
tetradic
#5F118C #8C2211 #3E8C11 #117B8C
square
#5F118C #8C2211 #3E8C11 #117B8C
split-complementary
#5F118C #7B8C11 #118C22
monochromatic
#15041F #3A0A55 #5F118C #8418C3 #A431E6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F118C#FFFFFF#000000##FFFFFF
##5F118C1.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)
#003B8F
Deuteranopia (green-blind)
#003E8A
Tritanopia (blue-blind)
#573452
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f118c;
/* rgb */ color: rgb(95, 17, 140);
/* oklch */ color: oklch(38.6% 0.182 308.0);
Tailwind
colors: {
  custom: {
    50: '#925daf',
    500: '#5f118c',
    950: '#000000',
  },
}
SCSS
$custom: #5f118c;
$custom-light: #925daf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f118c",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 140
  },
  "hsl": {
    "h": 278.049,
    "s": 78.344,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38579,
    "c": 0.18244,
    "h": 308
  },
  "luminance": 0.04727
}

Semantic roles & 50–950 ramp

primary
#5F118C
secondary
#6AC138
accent
#F5337A
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0E0510
muted
#7E797F

Preview Lab

Preview with #5F118C

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

Preview Lab → · Contrast checker → · Palette generator →

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