#7E196B#7E196B

#7E196B is a dark, vivid pink. Relative luminance 0.062; OKLCH L 41.7% C 0.161 H 337.1°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#7E196B
RGBrgb(126, 25, 107)
HSLhsl(311, 67%, 30%)
HSVhsv(311, 80%, 49%)
CMYKcmyk(0%, 80.2%, 15.1%, 50.6%)
CIE-LABlab(29.90, 50.23, -22.98)
CIE-LCHlch(29.90, 55.24, 335.41°)
OKLaboklab(41.7% 0.1482 -0.0626)
OKLCHoklch(41.7% 0.161 337.1)
XYZxyz(11.6059, 6.1935, 14.4913)
Luminance0.0619 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E196B #197E2C
analogous
#5F197E #7E196B #7E1939
triadic
#7E196B #6B7E19 #196B7E
tetradic
#7E196B #7E5F19 #197E2C #19397E
square
#7E196B #7E5F19 #197E2C #19397E
split-complementary
#7E196B #397E19 #197E5F
monochromatic
#1A0516 #4B0F40 #7E196B #B12396 #D83ABA

Accessibility & contrast

On white

9.38
#7E196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7E196B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E196B
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E196B#FFFFFF#000000##FFFFFF
##7E196B1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3D6D
Deuteranopia (green-blind)
#404C69
Tritanopia (blue-blind)
#852041
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e196b;
/* rgb */ color: rgb(126, 25, 107);
/* oklch */ color: oklch(41.7% 0.161 337.1);
Tailwind
colors: {
  custom: {
    50: '#a76295',
    500: '#7e196b',
    950: '#000000',
  },
}
SCSS
$custom: #7e196b;
$custom-light: #a76295;
$custom-dark: #000000;
JSON
{
  "hex": "#7e196b",
  "rgb": {
    "r": 126,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 311.287,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.41703,
    "c": 0.16087,
    "h": 337.1
  },
  "luminance": 0.06192
}

Semantic roles & 50–950 ramp

primary
#7E196B
secondary
#41B256
accent
#EA5E3E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E196B

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

Preview Lab → · Contrast checker → · Palette generator →

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