#7B187C#7B187C

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

Color values

HEX#7B187C
RGBrgb(123, 24, 124)
HSLhsl(299, 68%, 29%)
HSVhsv(299, 81%, 49%)
CMYKcmyk(0.8%, 80.6%, 0%, 51.4%)
CIE-LABlab(30.21, 52.59, -33.35)
CIE-LCHlch(30.21, 62.27, 327.62°)
OKLaboklab(42.13% 0.1463 -0.0926)
OKLCHoklch(42.13% 0.173 327.7)
XYZxyz(12.1329, 6.3204, 19.6458)
Luminance0.0632 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B187C #197C18
analogous
#49187C #7B187C #7C184B
triadic
#7B187C #7C7B18 #187C7B
tetradic
#7B187C #7C4918 #197C18 #184B7C
square
#7B187C #7C4918 #197C18 #184B7C
split-complementary
#7B187C #4B7C18 #187C49
monochromatic
#19051A #480E49 #7B187C #AE22AF #D736D8

Accessibility & contrast

On white

9.28
#7B187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B187C
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B187C#FFFFFF#000000##FFFFFF
##7B187C1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7F
Deuteranopia (green-blind)
#344B7A
Tritanopia (blue-blind)
#7F2A4A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7b187c;
/* rgb */ color: rgb(123, 24, 124);
/* oklch */ color: oklch(42.1% 0.173 327.7);
Tailwind
colors: {
  custom: {
    50: '#a562a2',
    500: '#7b187c',
    950: '#000000',
  },
}
SCSS
$custom: #7b187c;
$custom-light: #a562a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b187c",
  "rgb": {
    "r": 123,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 299.4,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.42134,
    "c": 0.17312,
    "h": 327.7
  },
  "luminance": 0.06319
}

Semantic roles & 50–950 ramp

primary
#7B187C
secondary
#40B13F
accent
#EA3D3F
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B187C

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

Preview Lab → · Contrast checker → · Palette generator →

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