#7B1E80#7B1E80

#7B1E80 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.9% C 0.170 H 325.8°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#7B1E80
RGBrgb(123, 30, 128)
HSLhsl(297, 62%, 31%)
HSVhsv(297, 77%, 50%)
CMYKcmyk(3.9%, 76.6%, 0%, 49.8%)
CIE-LABlab(31.11, 51.40, -34.42)
CIE-LCHlch(31.11, 61.86, 326.19°)
OKLaboklab(42.86% 0.1408 -0.0957)
OKLCHoklch(42.86% 0.17 325.8)
XYZxyz(12.5287, 6.6989, 21.0510)
Luminance0.0670 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1E80 #23801E
analogous
#4A1E80 #7B1E80 #801E54
triadic
#7B1E80 #807B1E #1E807B
tetradic
#7B1E80 #804A1E #23801E #1E5480
square
#7B1E80 #804A1E #23801E #1E5480
split-complementary
#7B1E80 #54801E #1E804A
monochromatic
#1C071D #4B124E #7B1E80 #AB2AB2 #CC45D3

Accessibility & contrast

On white

8.98
#7B1E80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7B1E80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1E80
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1E80#FFFFFF#000000##FFFFFF
##7B1E801.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004283
Deuteranopia (green-blind)
#344D7E
Tritanopia (blue-blind)
#7E2F4E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7b1e80;
/* rgb */ color: rgb(123, 30, 128);
/* oklch */ color: oklch(42.9% 0.170 325.8);
Tailwind
colors: {
  custom: {
    50: '#a565a5',
    500: '#7b1e80',
    950: '#000000',
  },
}
SCSS
$custom: #7b1e80;
$custom-light: #a565a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1e80",
  "rgb": {
    "r": 123,
    "g": 30,
    "b": 128
  },
  "hsl": {
    "h": 296.939,
    "s": 62.025,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42857,
    "c": 0.17029,
    "h": 325.8
  },
  "luminance": 0.06698
}

Semantic roles & 50–950 ramp

primary
#7B1E80
secondary
#4CB347
accent
#E5434B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B1E80

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

Preview Lab → · Contrast checker → · Palette generator →

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