#7B1E7E#7B1E7E

#7B1E7E is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.169 H 326.7°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#7B1E7E
RGBrgb(123, 30, 126)
HSLhsl(298, 62%, 31%)
HSVhsv(298, 76%, 49%)
CMYKcmyk(2.4%, 76.2%, 0%, 50.6%)
CIE-LABlab(30.99, 51.04, -33.36)
CIE-LCHlch(30.99, 60.98, 326.83°)
OKLaboklab(42.73% 0.1409 -0.0927)
OKLCHoklch(42.73% 0.169 326.7)
XYZxyz(12.3983, 6.6467, 20.3645)
Luminance0.0665 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1E7E #217E1E
analogous
#4B1E7E #7B1E7E #7E1E51
triadic
#7B1E7E #7E7B1E #1E7E7B
tetradic
#7B1E7E #7E4B1E #217E1E #1E517E
square
#7B1E7E #7E4B1E #217E1E #1E517E
split-complementary
#7B1E7E #517E1E #1E7E4B
monochromatic
#1A061B #4B124D #7B1E7E #AB2AAF #CE44D2

Accessibility & contrast

On white

9.02
#7B1E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B1E7E
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1E7E#FFFFFF#000000##FFFFFF
##7B1E7E1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044181
Deuteranopia (green-blind)
#364D7C
Tritanopia (blue-blind)
#7E2E4D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7b1e7e;
/* rgb */ color: rgb(123, 30, 126);
/* oklch */ color: oklch(42.7% 0.169 326.7);
Tailwind
colors: {
  custom: {
    50: '#a465a4',
    500: '#7b1e7e',
    950: '#000000',
  },
}
SCSS
$custom: #7b1e7e;
$custom-light: #a465a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1e7e",
  "rgb": {
    "r": 123,
    "g": 30,
    "b": 126
  },
  "hsl": {
    "h": 298.125,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.4273,
    "c": 0.16863,
    "h": 326.7
  },
  "luminance": 0.06646
}

Semantic roles & 50–950 ramp

primary
#7B1E7E
secondary
#4AB147
accent
#E54348
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B1E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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