#7E1B72#7E1B72

#7E1B72 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.164 H 333.6°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#7E1B72
RGBrgb(126, 27, 114)
HSLhsl(307, 65%, 30%)
HSVhsv(307, 79%, 49%)
CMYKcmyk(0%, 78.6%, 9.5%, 50.6%)
CIE-LABlab(30.49, 50.70, -26.53)
CIE-LCHlch(30.49, 57.22, 332.37°)
OKLaboklab(42.25% 0.1469 -0.0728)
OKLCHoklch(42.25% 0.164 333.6)
XYZxyz(12.0335, 6.4354, 16.5247)
Luminance0.0643 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1B72 #1B7E27
analogous
#591B7E #7E1B72 #7E1B40
triadic
#7E1B72 #727E1B #1B727E
tetradic
#7E1B72 #7E591B #1B7E27 #1B407E
square
#7E1B72 #7E591B #1B7E27 #1B407E
split-complementary
#7E1B72 #407E1B #1B7E59
monochromatic
#190517 #4C1044 #7E1B72 #B026A0 #D63EC3

Accessibility & contrast

On white

9.18
#7E1B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1B72
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1B72#FFFFFF#000000##FFFFFF
##7E1B721.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173F74
Deuteranopia (green-blind)
#3E4D70
Tritanopia (blue-blind)
#842545
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e1b72;
/* rgb */ color: rgb(126, 27, 114);
/* oklch */ color: oklch(42.2% 0.164 333.6);
Tailwind
colors: {
  custom: {
    50: '#a7639b',
    500: '#7e1b72',
    950: '#000000',
  },
}
SCSS
$custom: #7e1b72;
$custom-light: #a7639b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1b72",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 307.273,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.42248,
    "c": 0.16393,
    "h": 333.6
  },
  "luminance": 0.06434
}

Semantic roles & 50–950 ramp

primary
#7E1B72
secondary
#43B250
accent
#E85440
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1B72

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

Preview Lab → · Contrast checker → · Palette generator →

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