#7B2279#7B2279

#7B2279 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.8% C 0.160 H 328.9°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#7B2279
RGBrgb(123, 34, 121)
HSLhsl(301, 57%, 31%)
HSVhsv(301, 72%, 48%)
CMYKcmyk(0%, 72.4%, 1.6%, 51.8%)
CIE-LABlab(31.20, 48.72, -29.88)
CIE-LCHlch(31.20, 57.15, 328.48°)
OKLaboklab(42.79% 0.1368 -0.0826)
OKLCHoklch(42.79% 0.16 328.9)
XYZxyz(12.1915, 6.7364, 18.7436)
Luminance0.0673 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2279 #227B24
analogous
#50227B #7B2279 #7B224C
triadic
#7B2279 #797B22 #22797B
tetradic
#7B2279 #7B5022 #227B24 #224C7B
square
#7B2279 #7B5022 #227B24 #224C7B
split-complementary
#7B2279 #4C7B22 #227B50
monochromatic
#1B071B #4B154A #7B2279 #AB2FA8 #CD4ACA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B2279#FFFFFF#000000##FFFFFF
##7B22791.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)
#16427B
Deuteranopia (green-blind)
#3A4E77
Tritanopia (blue-blind)
#7F2E4B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7b2279;
/* rgb */ color: rgb(123, 34, 121);
/* oklch */ color: oklch(42.8% 0.160 328.9);
Tailwind
colors: {
  custom: {
    50: '#a466a0',
    500: '#7b2279',
    950: '#000000',
  },
}
SCSS
$custom: #7b2279;
$custom-light: #a466a0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2279",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 121
  },
  "hsl": {
    "h": 301.348,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42786,
    "c": 0.1598,
    "h": 328.9
  },
  "luminance": 0.06735
}

Semantic roles & 50–950 ramp

primary
#7B2279
secondary
#4BAE4D
accent
#E04B48
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7B2279

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

Preview Lab → · Contrast checker → · Palette generator →

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