#7B127F#7B127F

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

Color values

HEX#7B127F
RGBrgb(123, 18, 127)
HSLhsl(298, 75%, 28%)
HSVhsv(298, 86%, 50%)
CMYKcmyk(3.1%, 85.8%, 0%, 50.2%)
CIE-LABlab(29.85, 54.68, -35.80)
CIE-LCHlch(29.85, 65.35, 326.78°)
OKLaboklab(41.95% 0.1505 -0.0997)
OKLCHoklch(41.95% 0.181 326.5)
XYZxyz(12.2152, 6.1768, 20.6234)
Luminance0.0618 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B127F #167F12
analogous
#44127F #7B127F #7F124C
triadic
#7B127F #7F7B12 #127F7B
tetradic
#7B127F #7F4412 #167F12 #124C7F
square
#7B127F #7F4412 #167F12 #124C7F
split-complementary
#7B127F #4C7F12 #127F44
monochromatic
#1A041B #470A49 #7B127F #AF1AB5 #DA2BE1

Accessibility & contrast

On white

9.40
#7B127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B127F
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B127F#FFFFFF#000000##FFFFFF
##7B127F1.009.402.249.40
#FFFFFF9.401.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#304B7D
Tritanopia (blue-blind)
#7E284B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7b127f;
/* rgb */ color: rgb(123, 18, 127);
/* oklch */ color: oklch(41.9% 0.181 326.5);
Tailwind
colors: {
  custom: {
    50: '#a561a5',
    500: '#7b127f',
    950: '#000000',
  },
}
SCSS
$custom: #7b127f;
$custom-light: #a561a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b127f",
  "rgb": {
    "r": 123,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 297.798,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41945,
    "c": 0.18053,
    "h": 326.5
  },
  "luminance": 0.06176
}

Semantic roles & 50–950 ramp

primary
#7B127F
secondary
#3DB538
accent
#F2363D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B127F

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

Preview Lab → · Contrast checker → · Palette generator →

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