#7B186E#7B186E

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

Color values

HEX#7B186E
RGBrgb(123, 24, 110)
HSLhsl(308, 67%, 29%)
HSVhsv(308, 80%, 48%)
CMYKcmyk(0%, 80.5%, 10.6%, 51.8%)
CIE-LABlab(29.39, 50.28, -25.74)
CIE-LCHlch(29.39, 56.49, 332.89°)
OKLaboklab(41.29% 0.1462 -0.0705)
OKLCHoklch(41.29% 0.162 334.2)
XYZxyz(11.3096, 5.9910, 15.3096)
Luminance0.0599 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B186E #187B25
analogous
#57187B #7B186E #7B183D
triadic
#7B186E #6E7B18 #186E7B
tetradic
#7B186E #7B5718 #187B25 #183D7B
square
#7B186E #7B5718 #187B25 #183D7B
split-complementary
#7B186E #3D7B18 #187B57
monochromatic
#1A0517 #480E40 #7B186E #AE229C #D836C2

Accessibility & contrast

On white

9.55
#7B186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#7B186E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B186E
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B186E#FFFFFF#000000##FFFFFF
##7B186E1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163C70
Deuteranopia (green-blind)
#3C4A6C
Tritanopia (blue-blind)
#812242
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7b186e;
/* rgb */ color: rgb(123, 24, 110);
/* oklch */ color: oklch(41.3% 0.162 334.2);
Tailwind
colors: {
  custom: {
    50: '#a56298',
    500: '#7b186e',
    950: '#000000',
  },
}
SCSS
$custom: #7b186e;
$custom-light: #a56298;
$custom-dark: #000000;
JSON
{
  "hex": "#7b186e",
  "rgb": {
    "r": 123,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 307.879,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41287,
    "c": 0.16235,
    "h": 334.2
  },
  "luminance": 0.0599
}

Semantic roles & 50–950 ramp

primary
#7B186E
secondary
#3FB04E
accent
#EA543E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7B186E

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

Preview Lab → · Contrast checker → · Palette generator →

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