#5F128F#5F128F

#5F128F is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.9% C 0.184 H 306.9°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#5F128F
RGBrgb(95, 18, 143)
HSLhsl(277, 78%, 32%)
HSVhsv(277, 87%, 56%)
CMYKcmyk(33.6%, 87.4%, 0%, 43.9%)
CIE-LABlab(26.30, 52.87, -51.78)
CIE-LCHlch(26.30, 74.00, 315.60°)
OKLaboklab(38.91% 0.1108 -0.1475)
OKLCHoklch(38.91% 0.184 306.9)
XYZxyz(9.8925, 4.8488, 26.3960)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F128F #428F12
analogous
#21128F #5F128F #8F1281
triadic
#5F128F #8F5F12 #128F5F
tetradic
#5F128F #8F2112 #428F12 #12818F
square
#5F128F #8F2112 #428F12 #12818F
split-complementary
#5F128F #818F12 #128F21
monochromatic
#170422 #3B0B59 #5F128F #8319C5 #A236E6

Accessibility & contrast

On white

10.66
#5F128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5F128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F128F
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F128F#FFFFFF#000000##FFFFFF
##5F128F1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#563654
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f128f;
/* rgb */ color: rgb(95, 18, 143);
/* oklch */ color: oklch(38.9% 0.184 306.9);
Tailwind
colors: {
  custom: {
    50: '#925db1',
    500: '#5f128f',
    950: '#000000',
  },
}
SCSS
$custom: #5f128f;
$custom-light: #925db1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f128f",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 276.96,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38906,
    "c": 0.18447,
    "h": 306.9
  },
  "luminance": 0.04849
}

Semantic roles & 50–950 ramp

primary
#5F128F
secondary
#6EC33A
accent
#F4347E
background
#F9F5FB
surface
#F2E9F6
border
#CCC5D0
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #5F128F

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

Preview Lab → · Contrast checker → · Palette generator →

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