#7F1275#7F1275

#7F1275 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 42.0% C 0.175 H 332.6°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#7F1275
RGBrgb(127, 18, 117)
HSLhsl(306, 75%, 28%)
HSVhsv(306, 86%, 50%)
CMYKcmyk(0%, 85.8%, 7.9%, 50.2%)
CIE-LABlab(29.99, 53.86, -29.22)
CIE-LCHlch(29.99, 61.28, 331.52°)
OKLaboklab(41.98% 0.1553 -0.0805)
OKLCHoklch(41.98% 0.175 332.6)
XYZxyz(12.1797, 6.2301, 17.3872)
Luminance0.0623 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1275 #127F1C
analogous
#52127F #7F1275 #7F123E
triadic
#7F1275 #757F12 #12757F
tetradic
#7F1275 #7F5212 #127F1C #123E7F
square
#7F1275 #7F5212 #127F1C #123E7F
split-complementary
#7F1275 #3E7F12 #127F52
monochromatic
#1B0419 #490A44 #7F1275 #B51AA6 #E12BD0

Accessibility & contrast

On white

9.35
#7F1275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7F1275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1275
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1275#FFFFFF#000000##FFFFFF
##7F12751.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#073D77
Deuteranopia (green-blind)
#3A4C73
Tritanopia (blue-blind)
#852145
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1275;
/* rgb */ color: rgb(127, 18, 117);
/* oklch */ color: oklch(42.0% 0.175 332.6);
Tailwind
colors: {
  custom: {
    50: '#a8619d',
    500: '#7f1275',
    950: '#000000',
  },
}
SCSS
$custom: #7f1275;
$custom-light: #a8619d;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1275",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 305.505,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41981,
    "c": 0.17486,
    "h": 332.6
  },
  "luminance": 0.06229
}

Semantic roles & 50–950 ramp

primary
#7F1275
secondary
#38B544
accent
#F24736
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1275

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

Preview Lab → · Contrast checker → · Palette generator →

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