#7F1175#7F1175

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

Color values

HEX#7F1175
RGBrgb(127, 17, 117)
HSLhsl(305, 76%, 28%)
HSVhsv(305, 87%, 50%)
CMYKcmyk(0%, 86.6%, 7.9%, 50.2%)
CIE-LABlab(29.91, 54.09, -29.34)
CIE-LCHlch(29.91, 61.54, 331.52°)
OKLaboklab(41.93% 0.1559 -0.0808)
OKLCHoklch(41.93% 0.176 332.6)
XYZxyz(12.1638, 6.1984, 17.3819)
Luminance0.0620 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1175 #117F1B
analogous
#52117F #7F1175 #7F113E
triadic
#7F1175 #757F11 #11757F
tetradic
#7F1175 #7F5211 #117F1B #113E7F
square
#7F1175 #7F5211 #117F1B #113E7F
split-complementary
#7F1175 #3E7F11 #117F52
monochromatic
#1B0419 #490A43 #7F1175 #B518A7 #E228D1

Accessibility & contrast

On white

9.38
#7F1175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1175
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1175#FFFFFF#000000##FFFFFF
##7F11751.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f1175;
/* rgb */ color: rgb(127, 17, 117);
/* oklch */ color: oklch(41.9% 0.176 332.6);
Tailwind
colors: {
  custom: {
    50: '#a8619d',
    500: '#7f1175',
    950: '#000000',
  },
}
SCSS
$custom: #7f1175;
$custom-light: #a8619d;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1175",
  "rgb": {
    "r": 127,
    "g": 17,
    "b": 117
  },
  "hsl": {
    "h": 305.455,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41925,
    "c": 0.17562,
    "h": 332.6
  },
  "luminance": 0.06197
}

Semantic roles & 50–950 ramp

primary
#7F1175
secondary
#37B542
accent
#F34635
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1175

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

Preview Lab → · Contrast checker → · Palette generator →

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