#7E1255#7E1255

#7E1255 is a dark, vivid pink. Relative luminance 0.055; OKLCH L 40.1% C 0.153 H 348.9°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#7E1255
RGBrgb(126, 18, 85)
HSLhsl(323, 75%, 28%)
HSVhsv(323, 86%, 49%)
CMYKcmyk(0%, 85.7%, 32.5%, 50.6%)
CIE-LABlab(28.18, 49.17, -11.29)
CIE-LCHlch(28.18, 50.45, 347.07°)
OKLaboklab(40.13% 0.1506 -0.0296)
OKLCHoklch(40.13% 0.153 348.9)
XYZxyz(10.4608, 5.5254, 9.1082)
Luminance0.0552 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1255 #127E3B
analogous
#71127E #7E1255 #7E121F
triadic
#7E1255 #557E12 #12557E
tetradic
#7E1255 #7E7112 #127E3B #121F7E
square
#7E1255 #7E7112 #127E3B #121F7E
split-complementary
#7E1255 #1F7E12 #127E71
monochromatic
#1B0412 #480A31 #7E1255 #B41A79 #E12A9B

Accessibility & contrast

On white

9.98
#7E1255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#7E1255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1255
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1255#FFFFFF#000000##FFFFFF
##7E12551.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#263757
Deuteranopia (green-blind)
#464953
Tritanopia (blue-blind)
#880933
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #7e1255;
/* rgb */ color: rgb(126, 18, 85);
/* oklch */ color: oklch(40.1% 0.153 348.9);
Tailwind
colors: {
  custom: {
    50: '#a85f85',
    500: '#7e1255',
    950: '#000000',
  },
}
SCSS
$custom: #7e1255;
$custom-light: #a85f85;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1255",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 322.778,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.40128,
    "c": 0.15346,
    "h": 348.9
  },
  "luminance": 0.05524
}

Semantic roles & 50–950 ramp

primary
#7E1255
secondary
#38B467
accent
#F27D36
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10050B
muted
#7F7A7C

Preview Lab

Preview with #7E1255

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

Preview Lab → · Contrast checker → · Palette generator →

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