#7E1233#7E1233

#7E1233 is a dark, vivid pink. Relative luminance 0.051; OKLCH L 38.9% C 0.141 H 10.1°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#7E1233
RGBrgb(126, 18, 51)
HSLhsl(342, 75%, 28%)
HSVhsv(342, 86%, 49%)
CMYKcmyk(0%, 85.7%, 59.5%, 50.6%)
CIE-LABlab(27.04, 45.85, 9.89)
CIE-LCHlch(27.04, 46.91, 12.17°)
OKLaboklab(38.92% 0.1391 0.0248)
OKLCHoklch(38.92% 0.141 10.1)
XYZxyz(9.4190, 5.1087, 3.6214)
Luminance0.0511 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1233 #127E5D
analogous
#7E1269 #7E1233 #7E2712
triadic
#7E1233 #337E12 #12337E
tetradic
#7E1233 #697E12 #127E5D #27127E
square
#7E1233 #697E12 #127E5D #27127E
split-complementary
#7E1233 #127E27 #12697E
monochromatic
#1B040B #480A1D #7E1233 #B41A49 #E12A62

Accessibility & contrast

On white

10.39
#7E1233 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#7E1233 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1233
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1233#FFFFFF#000000##FFFFFF
##7E12331.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#323234
Deuteranopia (green-blind)
#4D4830
Tritanopia (blue-blind)
#8A0021
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7e1233;
/* rgb */ color: rgb(126, 18, 51);
/* oklch */ color: oklch(38.9% 0.141 10.1);
Tailwind
colors: {
  custom: {
    50: '#aa5e6a',
    500: '#7e1233',
    950: '#000000',
  },
}
SCSS
$custom: #7e1233;
$custom-light: #aa5e6a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1233",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 51
  },
  "hsl": {
    "h": 341.667,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.38924,
    "c": 0.14128,
    "h": 10.1
  },
  "luminance": 0.05107
}

Semantic roles & 50–950 ramp

primary
#7E1233
secondary
#38B48E
accent
#F2B836
background
#FBF5F6
surface
#F6EAEB
border
#D0C6C6
text
#110506
muted
#80797A

Preview Lab

Preview with #7E1233

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

Preview Lab → · Contrast checker → · Palette generator →

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