#7B278D#7B278D

#7B278D is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.5% C 0.171 H 320.0°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#7B278D
RGBrgb(123, 39, 141)
HSLhsl(289, 57%, 35%)
HSVhsv(289, 72%, 55%)
CMYKcmyk(12.8%, 72.3%, 0%, 44.7%)
CIE-LABlab(33.10, 50.51, -39.32)
CIE-LCHlch(33.10, 64.00, 322.10°)
OKLaboklab(44.54% 0.1311 -0.1101)
OKLCHoklch(44.54% 0.171 320)
XYZxyz(13.7010, 7.5858, 25.9367)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B278D #398D27
analogous
#48278D #7B278D #8D276C
triadic
#7B278D #8D7B27 #278D7B
tetradic
#7B278D #8D4827 #398D27 #276C8D
square
#7B278D #8D4827 #398D27 #276C8D
split-complementary
#7B278D #6C8D27 #278D48
monochromatic
#270C2D #511A5D #7B278D #A534BD #BD5CD2

Accessibility & contrast

On white

8.34
#7B278D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7B278D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B278D
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B278D#FFFFFF#000000##FFFFFF
##7B278D1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#30518B
Tritanopia (blue-blind)
#7B3A57
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b278d;
/* rgb */ color: rgb(123, 39, 141);
/* oklch */ color: oklch(44.5% 0.171 320.0);
Tailwind
colors: {
  custom: {
    50: '#a469af',
    500: '#7b278d',
    950: '#000000',
  },
}
SCSS
$custom: #7b278d;
$custom-light: #a469af;
$custom-dark: #000000;
JSON
{
  "hex": "#7b278d",
  "rgb": {
    "r": 123,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 289.412,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.44543,
    "c": 0.17117,
    "h": 320
  },
  "luminance": 0.07585
}

Semantic roles & 50–950 ramp

primary
#7B278D
secondary
#69B759
accent
#E04863
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B278D

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

Preview Lab → · Contrast checker → · Palette generator →

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