#7F1273#7F1273

#7F1273 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.9% C 0.173 H 333.5°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#7F1273
RGBrgb(127, 18, 115)
HSLhsl(307, 75%, 28%)
HSVhsv(307, 86%, 50%)
CMYKcmyk(0%, 85.8%, 9.4%, 50.2%)
CIE-LABlab(29.87, 53.55, -28.13)
CIE-LCHlch(29.87, 60.49, 332.29°)
OKLaboklab(41.86% 0.1552 -0.0773)
OKLCHoklch(41.86% 0.173 333.5)
XYZxyz(12.0633, 6.1835, 16.7745)
Luminance0.0618 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1273 #127F1E
analogous
#54127F #7F1273 #7F123C
triadic
#7F1273 #737F12 #12737F
tetradic
#7F1273 #7F5412 #127F1E #123C7F
square
#7F1273 #7F5412 #127F1E #123C7F
split-complementary
#7F1273 #3C7F12 #127F54
monochromatic
#1B0418 #490A42 #7F1273 #B51AA4 #E12BCD

Accessibility & contrast

On white

9.39
#7F1273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7F1273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1273
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1273#FFFFFF#000000##FFFFFF
##7F12731.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3D75
Deuteranopia (green-blind)
#3B4C71
Tritanopia (blue-blind)
#852044
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f1273;
/* rgb */ color: rgb(127, 18, 115);
/* oklch */ color: oklch(41.9% 0.173 333.5);
Tailwind
colors: {
  custom: {
    50: '#a8619b',
    500: '#7f1273',
    950: '#000000',
  },
}
SCSS
$custom: #7f1273;
$custom-light: #a8619b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1273",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 306.606,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41862,
    "c": 0.17341,
    "h": 333.5
  },
  "luminance": 0.06182
}

Semantic roles & 50–950 ramp

primary
#7F1273
secondary
#38B546
accent
#F24B36
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1273

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

Preview Lab → · Contrast checker → · Palette generator →

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