#7B187B#7B187B

#7B187B is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.1% C 0.172 H 328.1°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#7B187B
RGBrgb(123, 24, 123)
HSLhsl(300, 67%, 29%)
HSVhsv(300, 80%, 48%)
CMYKcmyk(0%, 80.5%, 0%, 51.8%)
CIE-LABlab(30.15, 52.42, -32.81)
CIE-LCHlch(30.15, 61.84, 327.95°)
OKLaboklab(42.07% 0.1463 -0.091)
OKLCHoklch(42.07% 0.172 328.1)
XYZxyz(12.0700, 6.2952, 19.3144)
Luminance0.0629 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B187B #187B18
analogous
#4A187B #7B187B #7B184A
triadic
#7B187B #7B7B18 #187B7B
tetradic
#7B187B #7B4A18 #187B18 #184A7B
square
#7B187B #7B4A18 #187B18 #184A7B
split-complementary
#7B187B #4A7B18 #187B4A
monochromatic
#1A051A #480E48 #7B187B #AE22AE #D836D8

Accessibility & contrast

On white

9.30
#7B187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7B187B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B187B
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B187B#FFFFFF#000000##FFFFFF
##7B187B1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7E
Deuteranopia (green-blind)
#354B79
Tritanopia (blue-blind)
#7F2949
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7b187b;
/* rgb */ color: rgb(123, 24, 123);
/* oklch */ color: oklch(42.1% 0.172 328.1);
Tailwind
colors: {
  custom: {
    50: '#a562a1',
    500: '#7b187b',
    950: '#000000',
  },
}
SCSS
$custom: #7b187b;
$custom-light: #a562a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b187b",
  "rgb": {
    "r": 123,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 300,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.4207,
    "c": 0.17233,
    "h": 328.1
  },
  "luminance": 0.06294
}

Semantic roles & 50–950 ramp

primary
#7B187B
secondary
#3FB03F
accent
#EA3E3E
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B187B

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

Preview Lab → · Contrast checker → · Palette generator →

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