#7B1B87#7B1B87

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

Color values

HEX#7B1B87
RGBrgb(123, 27, 135)
HSLhsl(293, 67%, 32%)
HSVhsv(293, 80%, 53%)
CMYKcmyk(8.9%, 80%, 0%, 47.1%)
CIE-LABlab(31.22, 53.64, -38.62)
CIE-LCHlch(31.22, 66.10, 324.25°)
OKLaboklab(43.08% 0.143 -0.108)
OKLCHoklch(43.08% 0.179 322.9)
XYZxyz(12.9331, 6.7449, 23.5377)
Luminance0.0674 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1B87 #27871B
analogous
#451B87 #7B1B87 #871B5D
triadic
#7B1B87 #877B1B #1B877B
tetradic
#7B1B87 #87451B #27871B #1B5D87
square
#7B1B87 #87451B #27871B #1B5D87
split-complementary
#7B1B87 #5D871B #1B8745
monochromatic
#1E0721 #4D1154 #7B1B87 #A925BA #C943D9

Accessibility & contrast

On white

8.94
#7B1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B1B87
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1B87#FFFFFF#000000##FFFFFF
##7B1B871.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#2E4D85
Tritanopia (blue-blind)
#7D3151
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7b1b87;
/* rgb */ color: rgb(123, 27, 135);
/* oklch */ color: oklch(43.1% 0.179 322.9);
Tailwind
colors: {
  custom: {
    50: '#a564aa',
    500: '#7b1b87',
    950: '#000000',
  },
}
SCSS
$custom: #7b1b87;
$custom-light: #a564aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1b87",
  "rgb": {
    "r": 123,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 293.333,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43076,
    "c": 0.17921,
    "h": 322.9
  },
  "luminance": 0.06744
}

Semantic roles & 50–950 ramp

primary
#7B1B87
secondary
#51BA44
accent
#EA3E51
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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