#7A1862#7A1862

#7A1862 is a dark, vivid pink. Relative luminance 0.057; OKLCH L 40.5% C 0.153 H 340.1°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#7A1862
RGBrgb(122, 24, 98)
HSLhsl(315, 67%, 29%)
HSVhsv(315, 80%, 48%)
CMYKcmyk(0%, 80.3%, 19.7%, 52.2%)
CIE-LABlab(28.57, 48.22, -19.28)
CIE-LCHlch(28.57, 51.93, 338.21°)
OKLaboklab(40.46% 0.1441 -0.0521)
OKLCHoklch(40.46% 0.153 340.1)
XYZxyz(10.5576, 5.6738, 12.0920)
Luminance0.0567 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1862 #187A30
analogous
#61187A #7A1862 #7A1831
triadic
#7A1862 #627A18 #18627A
tetradic
#7A1862 #7A6118 #187A30 #18317A
square
#7A1862 #7A6118 #187A30 #18317A
split-complementary
#7A1862 #317A18 #187A61
monochromatic
#1A0515 #470E39 #7A1862 #AD228B #D735B0

Accessibility & contrast

On white

9.84
#7A1862 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#7A1862 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1862
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1862#FFFFFF#000000##FFFFFF
##7A18621.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203964
Deuteranopia (green-blind)
#404960
Tritanopia (blue-blind)
#821B3B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7a1862;
/* rgb */ color: rgb(122, 24, 98);
/* oklch */ color: oklch(40.5% 0.153 340.1);
Tailwind
colors: {
  custom: {
    50: '#a4618f',
    500: '#7a1862',
    950: '#000000',
  },
}
SCSS
$custom: #7a1862;
$custom-light: #a4618f;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1862",
  "rgb": {
    "r": 122,
    "g": 24,
    "b": 98
  },
  "hsl": {
    "h": 314.694,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.40461,
    "c": 0.15318,
    "h": 340.1
  },
  "luminance": 0.05673
}

Semantic roles & 50–950 ramp

primary
#7A1862
secondary
#3FAF5A
accent
#EA683E
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10050C
muted
#7F7A7D

Preview Lab

Preview with #7A1862

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

Preview Lab → · Contrast checker → · Palette generator →

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