#7B178E#7B178E

#7B178E is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.3% C 0.189 H 320.4°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#7B178E
RGBrgb(123, 23, 142)
HSLhsl(290, 72%, 32%)
HSVhsv(290, 84%, 56%)
CMYKcmyk(13.4%, 83.8%, 0%, 44.3%)
CIE-LABlab(31.29, 56.09, -42.84)
CIE-LCHlch(31.29, 70.58, 322.63°)
OKLaboklab(43.28% 0.1452 -0.1203)
OKLCHoklch(43.28% 0.189 320.4)
XYZxyz(13.3567, 6.7775, 26.1906)
Luminance0.0678 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B178E #2A8E17
analogous
#3F178E #7B178E #8E1766
triadic
#7B178E #8E7B17 #178E7B
tetradic
#7B178E #8E3F17 #2A8E17 #17668E
square
#7B178E #8E3F17 #2A8E17 #17668E
split-complementary
#7B178E #668E17 #178E3F
monochromatic
#200625 #4D0E59 #7B178E #A920C3 #C63FE0

Accessibility & contrast

On white

8.92
#7B178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B178E
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B178E#FFFFFF#000000##FFFFFF
##7B178E1.008.922.368.92
#FFFFFF8.921.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#254D8B
Tritanopia (blue-blind)
#7B3254
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b178e;
/* rgb */ color: rgb(123, 23, 142);
/* oklch */ color: oklch(43.3% 0.189 320.4);
Tailwind
colors: {
  custom: {
    50: '#a563b0',
    500: '#7b178e',
    950: '#000000',
  },
}
SCSS
$custom: #7b178e;
$custom-light: #a563b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b178e",
  "rgb": {
    "r": 123,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 290.42,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43281,
    "c": 0.1886,
    "h": 320.4
  },
  "luminance": 0.06777
}

Semantic roles & 50–950 ramp

primary
#7B178E
secondary
#55C040
accent
#EF3956
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B178E

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

Preview Lab → · Contrast checker → · Palette generator →

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