#7F146E#7F146E

#7F146E is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.7% C 0.168 H 335.9°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#7F146E
RGBrgb(127, 20, 110)
HSLhsl(310, 73%, 29%)
HSVhsv(310, 84%, 50%)
CMYKcmyk(0%, 84.3%, 13.4%, 50.2%)
CIE-LABlab(29.76, 52.31, -25.11)
CIE-LCHlch(29.76, 58.02, 334.36°)
OKLaboklab(41.69% 0.1536 -0.0686)
OKLCHoklch(41.69% 0.168 335.9)
XYZxyz(11.8172, 6.1393, 15.3115)
Luminance0.0614 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F146E #147F25
analogous
#5B147F #7F146E #7F1439
triadic
#7F146E #6E7F14 #146E7F
tetradic
#7F146E #7F5B14 #147F25 #14397F
square
#7F146E #7F5B14 #147F25 #14397F
split-complementary
#7F146E #397F14 #147F5B
monochromatic
#1A0417 #4A0C40 #7F146E #B41C9C #DE2FC2

Accessibility & contrast

On white

9.43
#7F146E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7F146E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F146E
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F146E#FFFFFF#000000##FFFFFF
##7F146E1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153C70
Deuteranopia (green-blind)
#3E4C6C
Tritanopia (blue-blind)
#861E41
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f146e;
/* rgb */ color: rgb(127, 20, 110);
/* oklch */ color: oklch(41.7% 0.168 335.9);
Tailwind
colors: {
  custom: {
    50: '#a86198',
    500: '#7f146e',
    950: '#000000',
  },
}
SCSS
$custom: #7f146e;
$custom-light: #a86198;
$custom-dark: #000000;
JSON
{
  "hex": "#7f146e",
  "rgb": {
    "r": 127,
    "g": 20,
    "b": 110
  },
  "hsl": {
    "h": 309.533,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41694,
    "c": 0.16822,
    "h": 335.9
  },
  "luminance": 0.06138
}

Semantic roles & 50–950 ramp

primary
#7F146E
secondary
#3BB44E
accent
#EF5538
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F146E

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

Preview Lab → · Contrast checker → · Palette generator →

#7F146E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva