#7B1687#7B1687

#7B1687 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.7% C 0.184 H 323.1°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#7B1687
RGBrgb(123, 22, 135)
HSLhsl(294, 72%, 31%)
HSVhsv(294, 84%, 53%)
CMYKcmyk(8.9%, 83.7%, 0%, 47.1%)
CIE-LABlab(30.72, 55.08, -39.41)
CIE-LCHlch(30.72, 67.73, 324.41°)
OKLaboklab(42.73% 0.1469 -0.1103)
OKLCHoklch(42.73% 0.184 323.1)
XYZxyz(12.8280, 6.5348, 23.5026)
Luminance0.0653 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1687 #228716
analogous
#421687 #7B1687 #87165A
triadic
#7B1687 #877B16 #16877B
tetradic
#7B1687 #874216 #228716 #165A87
square
#7B1687 #874216 #228716 #165A87
split-complementary
#7B1687 #5A8716 #168742
monochromatic
#1B051E #4B0D52 #7B1687 #AB1FBC #CD39DF

Accessibility & contrast

On white

9.10
#7B1687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7B1687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1687
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1687#FFFFFF#000000##FFFFFF
##7B16871.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#2B4C85
Tritanopia (blue-blind)
#7D2E50
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7b1687;
/* rgb */ color: rgb(123, 22, 135);
/* oklch */ color: oklch(42.7% 0.184 323.1);
Tailwind
colors: {
  custom: {
    50: '#a562aa',
    500: '#7b1687',
    950: '#000000',
  },
}
SCSS
$custom: #7b1687;
$custom-light: #a562aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1687",
  "rgb": {
    "r": 123,
    "g": 22,
    "b": 135
  },
  "hsl": {
    "h": 293.628,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42726,
    "c": 0.1837,
    "h": 323.1
  },
  "luminance": 0.06534
}

Semantic roles & 50–950 ramp

primary
#7B1687
secondary
#4BBB3E
accent
#EF394C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B1687

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

Preview Lab → · Contrast checker → · Palette generator →

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