#7F127B#7F127B

#7F127B is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.179 H 329.9°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#7F127B
RGBrgb(127, 18, 123)
HSLhsl(302, 75%, 28%)
HSVhsv(302, 86%, 50%)
CMYKcmyk(0%, 85.8%, 3.1%, 50.2%)
CIE-LABlab(30.34, 54.82, -32.46)
CIE-LCHlch(30.34, 63.71, 329.37°)
OKLaboklab(42.35% 0.1551 -0.0898)
OKLCHoklch(42.35% 0.179 329.9)
XYZxyz(12.5438, 6.3757, 19.3050)
Luminance0.0638 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F127B #127F16
analogous
#4C127F #7F127B #7F1244
triadic
#7F127B #7B7F12 #127B7F
tetradic
#7F127B #7F4C12 #127F16 #12447F
square
#7F127B #7F4C12 #127F16 #12447F
split-complementary
#7F127B #447F12 #127F4C
monochromatic
#1B041A #490A47 #7F127B #B51AAF #E12BDA

Accessibility & contrast

On white

9.23
#7F127B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7F127B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F127B
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F127B#FFFFFF#000000##FFFFFF
##7F127B1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#374C79
Tritanopia (blue-blind)
#842548
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f127b;
/* rgb */ color: rgb(127, 18, 123);
/* oklch */ color: oklch(42.3% 0.179 329.9);
Tailwind
colors: {
  custom: {
    50: '#a861a1',
    500: '#7f127b',
    950: '#000000',
  },
}
SCSS
$custom: #7f127b;
$custom-light: #a861a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f127b",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 123
  },
  "hsl": {
    "h": 302.202,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.42348,
    "c": 0.17928,
    "h": 329.9
  },
  "luminance": 0.06375
}

Semantic roles & 50–950 ramp

primary
#7F127B
secondary
#38B53D
accent
#F23D36
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F127B

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

Preview Lab → · Contrast checker → · Palette generator →

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