#7A286C#7A286C

#7A286C is a dark, vivid pink. Relative luminance 0.067; OKLCH L 42.5% C 0.140 H 335.2°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#7A286C
RGBrgb(122, 40, 108)
HSLhsl(310, 51%, 32%)
HSVhsv(310, 67%, 48%)
CMYKcmyk(0%, 67.2%, 11.5%, 52.2%)
CIE-LABlab(31.20, 43.77, -21.63)
CIE-LCHlch(31.20, 48.82, 333.70°)
OKLaboklab(42.53% 0.1275 -0.0589)
OKLCHoklch(42.53% 0.14 335.2)
XYZxyz(11.4917, 6.7388, 14.8799)
Luminance0.0674 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A286C #287A36
analogous
#5F287A #7A286C #7A2843
triadic
#7A286C #6C7A28 #286C7A
tetradic
#7A286C #7A5F28 #287A36 #28437A
square
#7A286C #7A5F28 #287A36 #28437A
split-complementary
#7A286C #437A28 #287A5F
monochromatic
#1E0A1A #4C1943 #7A286C #A83795 #C755B4

Accessibility & contrast

On white

8.95
#7A286C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7A286C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A286C
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A286C#FFFFFF#000000##FFFFFF
##7A286C1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28426E
Deuteranopia (green-blind)
#434E6A
Tritanopia (blue-blind)
#802D46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7a286c;
/* rgb */ color: rgb(122, 40, 108);
/* oklch */ color: oklch(42.5% 0.140 335.2);
Tailwind
colors: {
  custom: {
    50: '#a36896',
    500: '#7a286c',
    950: '#000000',
  },
}
SCSS
$custom: #7a286c;
$custom-light: #a36896;
$custom-dark: #000000;
JSON
{
  "hex": "#7a286c",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 108
  },
  "hsl": {
    "h": 310.244,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.4253,
    "c": 0.14042,
    "h": 335.2
  },
  "luminance": 0.06738
}

Semantic roles & 50–950 ramp

primary
#7A286C
secondary
#52AC61
accent
#DA664E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F070D
muted
#7F7A7E

Preview Lab

Preview with #7A286C

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

Preview Lab → · Contrast checker → · Palette generator →

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