#7B168E#7B168E

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

Color values

HEX#7B168E
RGBrgb(123, 22, 142)
HSLhsl(291, 73%, 32%)
HSVhsv(291, 85%, 56%)
CMYKcmyk(13.4%, 84.5%, 0%, 44.3%)
CIE-LABlab(31.20, 56.36, -42.99)
CIE-LCHlch(31.20, 70.88, 322.67°)
OKLaboklab(43.22% 0.1459 -0.1207)
OKLCHoklch(43.22% 0.189 320.4)
XYZxyz(13.3372, 6.7385, 26.1841)
Luminance0.0674 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B168E #298E16
analogous
#3F168E #7B168E #8E1665
triadic
#7B168E #8E7B16 #168E7B
tetradic
#7B168E #8E3F16 #298E16 #16658E
square
#7B168E #8E3F16 #298E16 #16658E
split-complementary
#7B168E #658E16 #168E3F
monochromatic
#1F0624 #4D0E59 #7B168E #A91EC3 #C73DE1

Accessibility & contrast

On white

8.95
#7B168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7B168E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B168E
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B168E#FFFFFF#000000##FFFFFF
##7B168E1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#244D8B
Tritanopia (blue-blind)
#7B3254
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7b168e;
/* rgb */ color: rgb(123, 22, 142);
/* oklch */ color: oklch(43.2% 0.189 320.4);
Tailwind
colors: {
  custom: {
    50: '#a563b0',
    500: '#7b168e',
    950: '#000000',
  },
}
SCSS
$custom: #7b168e;
$custom-light: #a563b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b168e",
  "rgb": {
    "r": 123,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 290.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43217,
    "c": 0.1894,
    "h": 320.4
  },
  "luminance": 0.06738
}

Semantic roles & 50–950 ramp

primary
#7B168E
secondary
#53C13F
accent
#F03855
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B168E

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

Preview Lab → · Contrast checker → · Palette generator →

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