#5F128A#5F128A

#5F128A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.5% C 0.180 H 308.7°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#5F128A
RGBrgb(95, 18, 138)
HSLhsl(279, 77%, 31%)
HSVhsv(279, 87%, 54%)
CMYKcmyk(31.2%, 87%, 0%, 45.9%)
CIE-LABlab(25.86, 51.77, -49.38)
CIE-LCHlch(25.86, 71.54, 316.36°)
OKLaboklab(38.47% 0.1124 -0.1404)
OKLCHoklch(38.47% 0.18 308.7)
XYZxyz(9.5221, 4.7007, 24.4455)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F128A #3D8A12
analogous
#23128A #5F128A #8A1279
triadic
#5F128A #8A5F12 #128A5F
tetradic
#5F128A #8A2312 #3D8A12 #12798A
square
#5F128A #8A2312 #3D8A12 #12798A
split-complementary
#5F128A #798A12 #128A23
monochromatic
#14041E #3A0B54 #5F128A #8419C0 #A432E4

Accessibility & contrast

On white

10.82
#5F128A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5F128A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F128A
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F128A#FFFFFF#000000##FFFFFF
##5F128A1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#583451
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f128a;
/* rgb */ color: rgb(95, 18, 138);
/* oklch */ color: oklch(38.5% 0.180 308.7);
Tailwind
colors: {
  custom: {
    50: '#925dad',
    500: '#5f128a',
    950: '#000000',
  },
}
SCSS
$custom: #5f128a;
$custom-light: #925dad;
$custom-dark: #000000;
JSON
{
  "hex": "#5f128a",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 138
  },
  "hsl": {
    "h": 278.5,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38471,
    "c": 0.17988,
    "h": 308.7
  },
  "luminance": 0.047
}

Semantic roles & 50–950 ramp

primary
#5F128A
secondary
#69BF39
accent
#F33479
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F128A

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

Preview Lab → · Contrast checker → · Palette generator →

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