#7B186F#7B186F

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

Color values

HEX#7B186F
RGBrgb(123, 24, 111)
HSLhsl(307, 67%, 29%)
HSVhsv(307, 80%, 48%)
CMYKcmyk(0%, 80.5%, 9.8%, 51.8%)
CIE-LABlab(29.45, 50.44, -26.29)
CIE-LCHlch(29.45, 56.88, 332.47°)
OKLaboklab(41.34% 0.1463 -0.0721)
OKLCHoklch(41.34% 0.163 333.7)
XYZxyz(11.3644, 6.0129, 15.5979)
Luminance0.0601 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B186F #187B24
analogous
#56187B #7B186F #7B183E
triadic
#7B186F #6F7B18 #186F7B
tetradic
#7B186F #7B5618 #187B24 #183E7B
square
#7B186F #7B5618 #187B24 #183E7B
split-complementary
#7B186F #3E7B18 #187B56
monochromatic
#1A0517 #480E41 #7B186F #AE229D #D836C4

Accessibility & contrast

On white

9.54
#7B186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B186F
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B186F#FFFFFF#000000##FFFFFF
##7B186F1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143C71
Deuteranopia (green-blind)
#3B4A6D
Tritanopia (blue-blind)
#812343
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7b186f;
/* rgb */ color: rgb(123, 24, 111);
/* oklch */ color: oklch(41.3% 0.163 333.7);
Tailwind
colors: {
  custom: {
    50: '#a56298',
    500: '#7b186f',
    950: '#000000',
  },
}
SCSS
$custom: #7b186f;
$custom-light: #a56298;
$custom-dark: #000000;
JSON
{
  "hex": "#7b186f",
  "rgb": {
    "r": 123,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 307.273,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41344,
    "c": 0.16309,
    "h": 333.7
  },
  "luminance": 0.06012
}

Semantic roles & 50–950 ramp

primary
#7B186F
secondary
#3FB04D
accent
#EA523E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B186F

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

Preview Lab → · Contrast checker → · Palette generator →

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