#7B168D#7B168D

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

Color values

HEX#7B168D
RGBrgb(123, 22, 141)
HSLhsl(291, 73%, 32%)
HSVhsv(291, 84%, 55%)
CMYKcmyk(12.8%, 84.4%, 0%, 44.7%)
CIE-LABlab(31.13, 56.17, -42.48)
CIE-LCHlch(31.13, 70.43, 322.90°)
OKLaboklab(43.15% 0.1461 -0.1193)
OKLCHoklch(43.15% 0.189 320.8)
XYZxyz(13.2624, 6.7086, 25.7905)
Luminance0.0671 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B168D #288D16
analogous
#3F168D #7B168D #8D1664
triadic
#7B168D #8D7B16 #168D7B
tetradic
#7B168D #8D3F16 #288D16 #16648D
square
#7B168D #8D3F16 #288D16 #16648D
split-complementary
#7B168D #648D16 #168D3F
monochromatic
#1F0523 #4D0E58 #7B168D #A91EC2 #C83DE1

Accessibility & contrast

On white

8.97
#7B168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7B168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B168D
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B168D#FFFFFF#000000##FFFFFF
##7B168D1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#264D8A
Tritanopia (blue-blind)
#7C3153
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7b168d;
/* rgb */ color: rgb(123, 22, 141);
/* oklch */ color: oklch(43.1% 0.189 320.8);
Tailwind
colors: {
  custom: {
    50: '#a563af',
    500: '#7b168d',
    950: '#000000',
  },
}
SCSS
$custom: #7b168d;
$custom-light: #a563af;
$custom-dark: #000000;
JSON
{
  "hex": "#7b168d",
  "rgb": {
    "r": 123,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 290.924,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.43146,
    "c": 0.18859,
    "h": 320.8
  },
  "luminance": 0.06708
}

Semantic roles & 50–950 ramp

primary
#7B168D
secondary
#52C13E
accent
#F03854
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B168D

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

Preview Lab → · Contrast checker → · Palette generator →

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