#7E1F6B#7E1F6B

#7E1F6B is a dark, vivid pink. Relative luminance 0.065; OKLCH L 42.2% C 0.154 H 337.3°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#7E1F6B
RGBrgb(126, 31, 107)
HSLhsl(312, 61%, 31%)
HSVhsv(312, 75%, 49%)
CMYKcmyk(0%, 75.4%, 15.1%, 50.6%)
CIE-LABlab(30.59, 48.25, -21.90)
CIE-LCHlch(30.59, 52.99, 335.59°)
OKLaboklab(42.2% 0.1423 -0.0595)
OKLCHoklch(42.2% 0.154 337.3)
XYZxyz(11.7482, 6.4782, 14.5388)
Luminance0.0648 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F6B #1F7E32
analogous
#611F7E #7E1F6B #7E1F3B
triadic
#7E1F6B #6B7E1F #1F6B7E
tetradic
#7E1F6B #7E611F #1F7E32 #1F3B7E
square
#7E1F6B #7E611F #1F7E32 #1F3B7E
split-complementary
#7E1F6B #3B7E1F #1F7E61
monochromatic
#1C0718 #4D1341 #7E1F6B #AF2B95 #D146B6

Accessibility & contrast

On white

9.15
#7E1F6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7E1F6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F6B
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F6B#FFFFFF#000000##FFFFFF
##7E1F6B1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#223F6D
Deuteranopia (green-blind)
#424D69
Tritanopia (blue-blind)
#852542
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e1f6b;
/* rgb */ color: rgb(126, 31, 107);
/* oklch */ color: oklch(42.2% 0.154 337.3);
Tailwind
colors: {
  custom: {
    50: '#a76595',
    500: '#7e1f6b',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f6b;
$custom-light: #a76595;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f6b",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 107
  },
  "hsl": {
    "h": 312,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42203,
    "c": 0.15424,
    "h": 337.3
  },
  "luminance": 0.06477
}

Semantic roles & 50–950 ramp

primary
#7E1F6B
secondary
#48B15D
accent
#E46444
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E1F6B

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

Preview Lab → · Contrast checker → · Palette generator →

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