#7B1E7F#7B1E7F

#7B1E7F is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.8% C 0.169 H 326.2°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#7B1E7F
RGBrgb(123, 30, 127)
HSLhsl(298, 62%, 31%)
HSVhsv(298, 76%, 50%)
CMYKcmyk(3.1%, 76.4%, 0%, 50.2%)
CIE-LABlab(31.05, 51.22, -33.89)
CIE-LCHlch(31.05, 61.42, 326.51°)
OKLaboklab(42.79% 0.1409 -0.0942)
OKLCHoklch(42.79% 0.169 326.2)
XYZxyz(12.4632, 6.6727, 20.7061)
Luminance0.0667 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1E7F #227F1E
analogous
#4A1E7F #7B1E7F #7F1E52
triadic
#7B1E7F #7F7B1E #1E7F7B
tetradic
#7B1E7F #7F4A1E #227F1E #1E527F
square
#7B1E7F #7F4A1E #227F1E #1E527F
split-complementary
#7B1E7F #527F1E #1E7F4A
monochromatic
#1B071C #4B124D #7B1E7F #AB2AB1 #CD44D3

Accessibility & contrast

On white

9.00
#7B1E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7B1E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1E7F
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1E7F#FFFFFF#000000##FFFFFF
##7B1E7F1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014282
Deuteranopia (green-blind)
#354D7D
Tritanopia (blue-blind)
#7E2F4D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7b1e7f;
/* rgb */ color: rgb(123, 30, 127);
/* oklch */ color: oklch(42.8% 0.169 326.2);
Tailwind
colors: {
  custom: {
    50: '#a465a4',
    500: '#7b1e7f',
    950: '#000000',
  },
}
SCSS
$custom: #7b1e7f;
$custom-light: #a465a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1e7f",
  "rgb": {
    "r": 123,
    "g": 30,
    "b": 127
  },
  "hsl": {
    "h": 297.526,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42793,
    "c": 0.16946,
    "h": 326.2
  },
  "luminance": 0.06672
}

Semantic roles & 50–950 ramp

primary
#7B1E7F
secondary
#4BB247
accent
#E5434A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B1E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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