#7E1B73#7E1B73

#7E1B73 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.3% C 0.165 H 333.2°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#7E1B73
RGBrgb(126, 27, 115)
HSLhsl(307, 65%, 30%)
HSVhsv(307, 79%, 49%)
CMYKcmyk(0%, 78.6%, 8.7%, 50.6%)
CIE-LABlab(30.54, 50.86, -27.08)
CIE-LCHlch(30.54, 57.62, 331.96°)
OKLaboklab(42.31% 0.1469 -0.0744)
OKLCHoklch(42.31% 0.165 333.2)
XYZxyz(12.0907, 6.4583, 16.8261)
Luminance0.0646 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1B73 #1B7E26
analogous
#581B7E #7E1B73 #7E1B41
triadic
#7E1B73 #737E1B #1B737E
tetradic
#7E1B73 #7E581B #1B7E26 #1B417E
square
#7E1B73 #7E581B #1B7E26 #1B417E
split-complementary
#7E1B73 #417E1B #1B7E58
monochromatic
#190517 #4C1045 #7E1B73 #B026A1 #D63EC5

Accessibility & contrast

On white

9.16
#7E1B73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7E1B73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1B73
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1B73#FFFFFF#000000##FFFFFF
##7E1B731.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163F75
Deuteranopia (green-blind)
#3D4D71
Tritanopia (blue-blind)
#842646
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e1b73;
/* rgb */ color: rgb(126, 27, 115);
/* oklch */ color: oklch(42.3% 0.165 333.2);
Tailwind
colors: {
  custom: {
    50: '#a7649b',
    500: '#7e1b73',
    950: '#000000',
  },
}
SCSS
$custom: #7e1b73;
$custom-light: #a7649b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1b73",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 115
  },
  "hsl": {
    "h": 306.667,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.42306,
    "c": 0.16469,
    "h": 333.2
  },
  "luminance": 0.06457
}

Semantic roles & 50–950 ramp

primary
#7E1B73
secondary
#43B24F
accent
#E85340
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1B73

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

Preview Lab → · Contrast checker → · Palette generator →

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