#7B286C#7B286C

#7B286C is a dark, vivid pink. Relative luminance 0.068; OKLCH L 42.7% C 0.141 H 335.7°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#7B286C
RGBrgb(123, 40, 108)
HSLhsl(311, 51%, 32%)
HSVhsv(311, 67%, 48%)
CMYKcmyk(0%, 67.5%, 12.2%, 51.8%)
CIE-LABlab(31.38, 44.05, -21.35)
CIE-LCHlch(31.38, 48.95, 334.14°)
OKLaboklab(42.69% 0.1286 -0.0581)
OKLCHoklch(42.69% 0.141 335.7)
XYZxyz(11.6341, 6.8122, 14.8866)
Luminance0.0681 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B286C #287B37
analogous
#61287B #7B286C #7B2843
triadic
#7B286C #6C7B28 #286C7B
tetradic
#7B286C #7B6128 #287B37 #28437B
square
#7B286C #7B6128 #287B37 #28437B
split-complementary
#7B286C #437B28 #287B61
monochromatic
#1F0A1B #4D1943 #7B286C #A93795 #C856B3

Accessibility & contrast

On white

8.89
#7B286C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7B286C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B286C
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B286C#FFFFFF#000000##FFFFFF
##7B286C1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29426E
Deuteranopia (green-blind)
#434E6A
Tritanopia (blue-blind)
#812D46
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b286c;
/* rgb */ color: rgb(123, 40, 108);
/* oklch */ color: oklch(42.7% 0.141 335.7);
Tailwind
colors: {
  custom: {
    50: '#a46996',
    500: '#7b286c',
    950: '#000000',
  },
}
SCSS
$custom: #7b286c;
$custom-light: #a46996;
$custom-dark: #000000;
JSON
{
  "hex": "#7b286c",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 108
  },
  "hsl": {
    "h": 310.843,
    "s": 50.92,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42688,
    "c": 0.14109,
    "h": 335.7
  },
  "luminance": 0.06811
}

Semantic roles & 50–950 ramp

primary
#7B286C
secondary
#52AD62
accent
#DA674D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F070D
muted
#7F7A7E

Preview Lab

Preview with #7B286C

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

Preview Lab → · Contrast checker → · Palette generator →

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