#7B186B#7B186B

#7B186B is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.1% C 0.160 H 335.8°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#7B186B
RGBrgb(123, 24, 107)
HSLhsl(310, 67%, 29%)
HSVhsv(310, 80%, 48%)
CMYKcmyk(0%, 80.5%, 13%, 51.8%)
CIE-LABlab(29.23, 49.81, -24.07)
CIE-LCHlch(29.23, 55.32, 334.21°)
OKLaboklab(41.12% 0.146 -0.0657)
OKLCHoklch(41.12% 0.16 335.8)
XYZxyz(11.1490, 5.9268, 14.4639)
Luminance0.0593 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B186B #187B28
analogous
#5A187B #7B186B #7B183A
triadic
#7B186B #6B7B18 #186B7B
tetradic
#7B186B #7B5A18 #187B28 #183A7B
square
#7B186B #7B5A18 #187B28 #183A7B
split-complementary
#7B186B #3A7B18 #187B5A
monochromatic
#1A0516 #480E3E #7B186B #AE2298 #D836BE

Accessibility & contrast

On white

9.61
#7B186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B186B
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B186B#FFFFFF#000000##FFFFFF
##7B186B1.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193B6D
Deuteranopia (green-blind)
#3D4A69
Tritanopia (blue-blind)
#822040
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7b186b;
/* rgb */ color: rgb(123, 24, 107);
/* oklch */ color: oklch(41.1% 0.160 335.8);
Tailwind
colors: {
  custom: {
    50: '#a56295',
    500: '#7b186b',
    950: '#000000',
  },
}
SCSS
$custom: #7b186b;
$custom-light: #a56295;
$custom-dark: #000000;
JSON
{
  "hex": "#7b186b",
  "rgb": {
    "r": 123,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 309.697,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41117,
    "c": 0.16015,
    "h": 335.8
  },
  "luminance": 0.05926
}

Semantic roles & 50–950 ramp

primary
#7B186B
secondary
#3FB051
accent
#EA593E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7B186B

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

Preview Lab → · Contrast checker → · Palette generator →

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