#7B276E#7B276E

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

Color values

HEX#7B276E
RGBrgb(123, 39, 110)
HSLhsl(309, 52%, 32%)
HSVhsv(309, 68%, 48%)
CMYKcmyk(0%, 68.3%, 10.6%, 51.8%)
CIE-LABlab(31.32, 44.82, -22.71)
CIE-LCHlch(31.32, 50.24, 333.12°)
OKLaboklab(42.68% 0.1301 -0.062)
OKLCHoklch(42.68% 0.144 334.5)
XYZxyz(11.7085, 6.7887, 15.4425)
Luminance0.0679 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B276E #277B34
analogous
#5E277B #7B276E #7B2744
triadic
#7B276E #6E7B27 #276E7B
tetradic
#7B276E #7B5E27 #277B34 #27447B
square
#7B276E #7B5E27 #277B34 #27447B
split-complementary
#7B276E #447B27 #277B5E
monochromatic
#1E0A1B #4D1844 #7B276E #A93698 #C954B7

Accessibility & contrast

On white

8.91
#7B276E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B276E
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B276E#FFFFFF#000000##FFFFFF
##7B276E1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264270
Deuteranopia (green-blind)
#424E6C
Tritanopia (blue-blind)
#812D47
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b276e;
/* rgb */ color: rgb(123, 39, 110);
/* oklch */ color: oklch(42.7% 0.144 334.5);
Tailwind
colors: {
  custom: {
    50: '#a46898',
    500: '#7b276e',
    950: '#000000',
  },
}
SCSS
$custom: #7b276e;
$custom-light: #a46898;
$custom-dark: #000000;
JSON
{
  "hex": "#7b276e",
  "rgb": {
    "r": 123,
    "g": 39,
    "b": 110
  },
  "hsl": {
    "h": 309.286,
    "s": 51.852,
    "l": 31.765
  },
  "oklch": {
    "l": 0.42681,
    "c": 0.14413,
    "h": 334.5
  },
  "luminance": 0.06788
}

Semantic roles & 50–950 ramp

primary
#7B276E
secondary
#51AD5F
accent
#DB634C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070D
muted
#7F7A7E

Preview Lab

Preview with #7B276E

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

Preview Lab → · Contrast checker → · Palette generator →

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