#7B186D#7B186D

#7B186D is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.2% C 0.162 H 334.7°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#7B186D
RGBrgb(123, 24, 109)
HSLhsl(308, 67%, 29%)
HSVhsv(308, 80%, 48%)
CMYKcmyk(0%, 80.5%, 11.4%, 51.8%)
CIE-LABlab(29.34, 50.12, -25.19)
CIE-LCHlch(29.34, 56.10, 333.32°)
OKLaboklab(41.23% 0.1462 -0.0689)
OKLCHoklch(41.23% 0.162 334.7)
XYZxyz(11.2555, 5.9694, 15.0245)
Luminance0.0597 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B186D #187B26
analogous
#58187B #7B186D #7B183C
triadic
#7B186D #6D7B18 #186D7B
tetradic
#7B186D #7B5818 #187B26 #183C7B
square
#7B186D #7B5818 #187B26 #183C7B
split-complementary
#7B186D #3C7B18 #187B58
monochromatic
#1A0517 #480E40 #7B186D #AE229A #D836C1

Accessibility & contrast

On white

9.57
#7B186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#7B186D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B186D
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B186D#FFFFFF#000000##FFFFFF
##7B186D1.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173C6F
Deuteranopia (green-blind)
#3C4A6B
Tritanopia (blue-blind)
#812142
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7b186d;
/* rgb */ color: rgb(123, 24, 109);
/* oklch */ color: oklch(41.2% 0.162 334.7);
Tailwind
colors: {
  custom: {
    50: '#a56297',
    500: '#7b186d',
    950: '#000000',
  },
}
SCSS
$custom: #7b186d;
$custom-light: #a56297;
$custom-dark: #000000;
JSON
{
  "hex": "#7b186d",
  "rgb": {
    "r": 123,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 308.485,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.4123,
    "c": 0.16162,
    "h": 334.7
  },
  "luminance": 0.05968
}

Semantic roles & 50–950 ramp

primary
#7B186D
secondary
#3FB04F
accent
#EA563E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7B186D

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

Preview Lab → · Contrast checker → · Palette generator →

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