#7B186C#7B186C

#7B186C is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.2% C 0.161 H 335.3°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#7B186C
RGBrgb(123, 24, 108)
HSLhsl(309, 67%, 29%)
HSVhsv(309, 80%, 48%)
CMYKcmyk(0%, 80.5%, 12.2%, 51.8%)
CIE-LABlab(29.28, 49.97, -24.63)
CIE-LCHlch(29.28, 55.71, 333.76°)
OKLaboklab(41.17% 0.1461 -0.0673)
OKLCHoklch(41.17% 0.161 335.3)
XYZxyz(11.2019, 5.9480, 14.7426)
Luminance0.0595 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B186C #187B27
analogous
#59187B #7B186C #7B183B
triadic
#7B186C #6C7B18 #186C7B
tetradic
#7B186C #7B5918 #187B27 #183B7B
square
#7B186C #7B5918 #187B27 #183B7B
split-complementary
#7B186C #3B7B18 #187B59
monochromatic
#1A0516 #480E3F #7B186C #AE2299 #D836BF

Accessibility & contrast

On white

9.59
#7B186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B186C
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B186C#FFFFFF#000000##FFFFFF
##7B186C1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183C6E
Deuteranopia (green-blind)
#3D4A6A
Tritanopia (blue-blind)
#812141
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7b186c;
/* rgb */ color: rgb(123, 24, 108);
/* oklch */ color: oklch(41.2% 0.161 335.3);
Tailwind
colors: {
  custom: {
    50: '#a56296',
    500: '#7b186c',
    950: '#000000',
  },
}
SCSS
$custom: #7b186c;
$custom-light: #a56296;
$custom-dark: #000000;
JSON
{
  "hex": "#7b186c",
  "rgb": {
    "r": 123,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 309.091,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41173,
    "c": 0.16088,
    "h": 335.3
  },
  "luminance": 0.05947
}

Semantic roles & 50–950 ramp

primary
#7B186C
secondary
#3FB050
accent
#EA583E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7B186C

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

Preview Lab → · Contrast checker → · Palette generator →

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