#7B276F#7B276F

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

Color values

HEX#7B276F
RGBrgb(123, 39, 111)
HSLhsl(309, 52%, 32%)
HSVhsv(309, 68%, 48%)
CMYKcmyk(0%, 68.3%, 9.8%, 51.8%)
CIE-LABlab(31.37, 44.98, -23.27)
CIE-LCHlch(31.37, 50.65, 332.65°)
OKLaboklab(42.74% 0.1303 -0.0636)
OKLCHoklch(42.74% 0.145 334)
XYZxyz(11.7632, 6.8106, 15.7309)
Luminance0.0681 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B276F #277B33
analogous
#5D277B #7B276F #7B2745
triadic
#7B276F #6F7B27 #276F7B
tetradic
#7B276F #7B5D27 #277B33 #27457B
square
#7B276F #7B5D27 #277B33 #27457B
split-complementary
#7B276F #457B27 #277B5D
monochromatic
#1E0A1B #4D1845 #7B276F #A93699 #C954B8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B276F#FFFFFF#000000##FFFFFF
##7B276F1.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)
#264271
Deuteranopia (green-blind)
#424E6D
Tritanopia (blue-blind)
#812E47
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b276f;
/* rgb */ color: rgb(123, 39, 111);
/* oklch */ color: oklch(42.7% 0.145 334.0);
Tailwind
colors: {
  custom: {
    50: '#a46898',
    500: '#7b276f',
    950: '#000000',
  },
}
SCSS
$custom: #7b276f;
$custom-light: #a46898;
$custom-dark: #000000;
JSON
{
  "hex": "#7b276f",
  "rgb": {
    "r": 123,
    "g": 39,
    "b": 111
  },
  "hsl": {
    "h": 308.571,
    "s": 51.852,
    "l": 31.765
  },
  "oklch": {
    "l": 0.42735,
    "c": 0.14494,
    "h": 334
  },
  "luminance": 0.0681
}

Semantic roles & 50–950 ramp

primary
#7B276F
secondary
#51AD5E
accent
#DB614C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F070D
muted
#7F7A7E

Preview Lab

Preview with #7B276F

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

Preview Lab → · Contrast checker → · Palette generator →

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