#7B286D#7B286D

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

Color values

HEX#7B286D
RGBrgb(123, 40, 109)
HSLhsl(310, 51%, 32%)
HSVhsv(310, 67%, 48%)
CMYKcmyk(0%, 67.5%, 11.4%, 51.8%)
CIE-LABlab(31.43, 44.22, -21.91)
CIE-LCHlch(31.43, 49.35, 333.64°)
OKLaboklab(42.74% 0.1287 -0.0597)
OKLCHoklch(42.74% 0.142 335.1)
XYZxyz(11.6876, 6.8336, 15.1685)
Luminance0.0683 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B286D #287B36
analogous
#5F287B #7B286D #7B2844
triadic
#7B286D #6D7B28 #286D7B
tetradic
#7B286D #7B5F28 #287B36 #28447B
square
#7B286D #7B5F28 #287B36 #28447B
split-complementary
#7B286D #447B28 #287B5F
monochromatic
#1F0A1B #4D1944 #7B286D #A93796 #C856B5

Accessibility & contrast

On white

8.87
#7B286D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7B286D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B286D
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B286D#FFFFFF#000000##FFFFFF
##7B286D1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28426F
Deuteranopia (green-blind)
#434E6B
Tritanopia (blue-blind)
#812E46
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b286d;
/* rgb */ color: rgb(123, 40, 109);
/* oklch */ color: oklch(42.7% 0.142 335.1);
Tailwind
colors: {
  custom: {
    50: '#a46997',
    500: '#7b286d',
    950: '#000000',
  },
}
SCSS
$custom: #7b286d;
$custom-light: #a46997;
$custom-dark: #000000;
JSON
{
  "hex": "#7b286d",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 109
  },
  "hsl": {
    "h": 310.12,
    "s": 50.92,
    "l": 31.961
  },
  "oklch": {
    "l": 0.4274,
    "c": 0.1419,
    "h": 335.1
  },
  "luminance": 0.06833
}

Semantic roles & 50–950 ramp

primary
#7B286D
secondary
#52AD61
accent
#DA654D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F070D
muted
#7F7A7E

Preview Lab

Preview with #7B286D

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

Preview Lab → · Contrast checker → · Palette generator →

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