#7E1852#7E1852

#7E1852 is a dark, vivid pink. Relative luminance 0.057; OKLCH L 40.4% C 0.146 H 351.2°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#7E1852
RGBrgb(126, 24, 82)
HSLhsl(326, 68%, 29%)
HSVhsv(326, 81%, 49%)
CMYKcmyk(0%, 81%, 34.9%, 50.6%)
CIE-LABlab(28.64, 47.15, -8.61)
CIE-LCHlch(28.64, 47.93, 349.65°)
OKLaboklab(40.42% 0.1446 -0.0223)
OKLCHoklch(40.42% 0.146 351.2)
XYZxyz(10.4544, 5.6994, 8.5306)
Luminance0.0570 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1852 #187E44
analogous
#77187E #7E1852 #7E181F
triadic
#7E1852 #527E18 #18527E
tetradic
#7E1852 #7E7718 #187E44 #181F7E
square
#7E1852 #7E7718 #187E44 #181F7E
split-complementary
#7E1852 #1F7E18 #187E77
monochromatic
#1A0511 #4B0E31 #7E1852 #B12273 #D93793

Accessibility & contrast

On white

9.81
#7E1852 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#7E1852 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1852
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1852#FFFFFF#000000##FFFFFF
##7E18521.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B3853
Deuteranopia (green-blind)
#484A50
Tritanopia (blue-blind)
#880F33
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e1852;
/* rgb */ color: rgb(126, 24, 82);
/* oklch */ color: oklch(40.4% 0.146 351.2);
Tailwind
colors: {
  custom: {
    50: '#a86182',
    500: '#7e1852',
    950: '#000000',
  },
}
SCSS
$custom: #7e1852;
$custom-light: #a86182;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1852",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 82
  },
  "hsl": {
    "h": 325.882,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.40421,
    "c": 0.14628,
    "h": 351.2
  },
  "luminance": 0.05698
}

Semantic roles & 50–950 ramp

primary
#7E1852
secondary
#3FB271
accent
#EB883D
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10050A
muted
#7F7A7C

Preview Lab

Preview with #7E1852

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

Preview Lab → · Contrast checker → · Palette generator →

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