#7B1D74#7B1D74

#7B1D74 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.0% C 0.162 H 331.3°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#7B1D74
RGBrgb(123, 29, 116)
HSLhsl(304, 62%, 30%)
HSVhsv(304, 76%, 48%)
CMYKcmyk(0%, 76.4%, 5.7%, 51.8%)
CIE-LABlab(30.28, 49.66, -28.16)
CIE-LCHlch(30.28, 57.09, 330.44°)
OKLaboklab(42.04% 0.1418 -0.0776)
OKLCHoklch(42.04% 0.162 331.3)
XYZxyz(11.7601, 6.3516, 17.1262)
Luminance0.0635 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1D74 #1D7B24
analogous
#531D7B #7B1D74 #7B1D45
triadic
#7B1D74 #747B1D #1D747B
tetradic
#7B1D74 #7B531D #1D7B24 #1D457B
square
#7B1D74 #7B531D #1D7B24 #1D457B
split-complementary
#7B1D74 #457B1D #1D7B53
monochromatic
#190617 #491145 #7B1D74 #AD29A3 #D240C7

Accessibility & contrast

On white

9.25
#7B1D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7B1D74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1D74
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1D74#FFFFFF#000000##FFFFFF
##7B1D741.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153F76
Deuteranopia (green-blind)
#3B4C72
Tritanopia (blue-blind)
#802847
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7b1d74;
/* rgb */ color: rgb(123, 29, 116);
/* oklch */ color: oklch(42.0% 0.162 331.3);
Tailwind
colors: {
  custom: {
    50: '#a4649c',
    500: '#7b1d74',
    950: '#000000',
  },
}
SCSS
$custom: #7b1d74;
$custom-light: #a4649c;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1d74",
  "rgb": {
    "r": 123,
    "g": 29,
    "b": 116
  },
  "hsl": {
    "h": 304.468,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42036,
    "c": 0.16164,
    "h": 331.3
  },
  "luminance": 0.06351
}

Semantic roles & 50–950 ramp

primary
#7B1D74
secondary
#45AF4D
accent
#E54F43
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B1D74

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

Preview Lab → · Contrast checker → · Palette generator →

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