#7B277A#7B277A

#7B277A is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.4% C 0.154 H 328.3°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#7B277A
RGBrgb(123, 39, 122)
HSLhsl(301, 52%, 32%)
HSVhsv(301, 68%, 48%)
CMYKcmyk(0%, 68.3%, 0.8%, 51.8%)
CIE-LABlab(31.96, 46.91, -29.30)
CIE-LCHlch(31.96, 55.31, 328.00°)
OKLaboklab(43.35% 0.1312 -0.0809)
OKLCHoklch(43.35% 0.154 328.3)
XYZxyz(12.4066, 7.0680, 19.1194)
Luminance0.0707 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B277A #277B28
analogous
#52277B #7B277A #7B2750
triadic
#7B277A #7A7B27 #277A7B
tetradic
#7B277A #7B5227 #277B28 #27507B
square
#7B277A #7B5227 #277B28 #27507B
split-complementary
#7B277A #507B27 #277B52
monochromatic
#1E0A1E #4D184C #7B277A #A936A8 #C954C7

Accessibility & contrast

On white

8.70
#7B277A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7B277A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B277A
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B277A#FFFFFF#000000##FFFFFF
##7B277A1.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C447C
Deuteranopia (green-blind)
#3C4F78
Tritanopia (blue-blind)
#7F324D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7b277a;
/* rgb */ color: rgb(123, 39, 122);
/* oklch */ color: oklch(43.4% 0.154 328.3);
Tailwind
colors: {
  custom: {
    50: '#a469a1',
    500: '#7b277a',
    950: '#000000',
  },
}
SCSS
$custom: #7b277a;
$custom-light: #a469a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b277a",
  "rgb": {
    "r": 123,
    "g": 39,
    "b": 122
  },
  "hsl": {
    "h": 300.714,
    "s": 51.852,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43353,
    "c": 0.15416,
    "h": 328.3
  },
  "luminance": 0.07067
}

Semantic roles & 50–950 ramp

primary
#7B277A
secondary
#51AD52
accent
#DB4E4C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070F
muted
#7F7A7E

Preview Lab

Preview with #7B277A

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

Preview Lab → · Contrast checker → · Palette generator →

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