#7B277E#7B277E

#7B277E is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.6% C 0.158 H 326.4°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#7B277E
RGBrgb(123, 39, 126)
HSLhsl(298, 53%, 32%)
HSVhsv(298, 69%, 49%)
CMYKcmyk(2.4%, 69%, 0%, 50.6%)
CIE-LABlab(32.19, 47.64, -31.45)
CIE-LCHlch(32.19, 57.08, 326.56°)
OKLaboklab(43.59% 0.1314 -0.0872)
OKLCHoklch(43.59% 0.158 326.4)
XYZxyz(12.6596, 7.1692, 20.4516)
Luminance0.0717 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B277E #2A7E27
analogous
#50277E #7B277E #7E2756
triadic
#7B277E #7E7B27 #277E7B
tetradic
#7B277E #7E5027 #2A7E27 #27567E
square
#7B277E #7E5027 #2A7E27 #27567E
split-complementary
#7B277E #567E27 #277E50
monochromatic
#200A21 #4D194F #7B277E #A935AD #C655CA

Accessibility & contrast

On white

8.63
#7B277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7B277E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B277E
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B277E#FFFFFF#000000##FFFFFF
##7B277E1.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174581
Deuteranopia (green-blind)
#3A4F7C
Tritanopia (blue-blind)
#7E344F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7b277e;
/* rgb */ color: rgb(123, 39, 126);
/* oklch */ color: oklch(43.6% 0.158 326.4);
Tailwind
colors: {
  custom: {
    50: '#a469a4',
    500: '#7b277e',
    950: '#000000',
  },
}
SCSS
$custom: #7b277e;
$custom-light: #a469a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b277e",
  "rgb": {
    "r": 123,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 297.931,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43591,
    "c": 0.15765,
    "h": 326.4
  },
  "luminance": 0.07168
}

Semantic roles & 50–950 ramp

primary
#7B277E
secondary
#55AF52
accent
#DC4C51
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7B277E

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

Preview Lab → · Contrast checker → · Palette generator →

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