#7B187E#7B187E

#7B187E is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.175 H 326.8°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#7B187E
RGBrgb(123, 24, 126)
HSLhsl(298, 68%, 29%)
HSVhsv(298, 81%, 49%)
CMYKcmyk(2.4%, 81%, 0%, 50.6%)
CIE-LABlab(30.33, 52.93, -34.41)
CIE-LCHlch(30.33, 63.13, 326.97°)
OKLaboklab(42.26% 0.1462 -0.0957)
OKLCHoklch(42.26% 0.175 326.8)
XYZxyz(12.2607, 6.3715, 20.3187)
Luminance0.0637 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B187E #1B7E18
analogous
#48187E #7B187E #7E184E
triadic
#7B187E #7E7B18 #187E7B
tetradic
#7B187E #7E4818 #1B7E18 #184E7E
square
#7B187E #7E4818 #1B7E18 #184E7E
split-complementary
#7B187E #4E7E18 #187E48
monochromatic
#19051A #490E4B #7B187E #AD22B1 #D437D9

Accessibility & contrast

On white

9.23
#7B187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7B187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B187E
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B187E#FFFFFF#000000##FFFFFF
##7B187E1.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#334C7C
Tritanopia (blue-blind)
#7F2B4B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7b187e;
/* rgb */ color: rgb(123, 24, 126);
/* oklch */ color: oklch(42.3% 0.175 326.8);
Tailwind
colors: {
  custom: {
    50: '#a562a4',
    500: '#7b187e',
    950: '#000000',
  },
}
SCSS
$custom: #7b187e;
$custom-light: #a562a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b187e",
  "rgb": {
    "r": 123,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 298.235,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42262,
    "c": 0.17471,
    "h": 326.8
  },
  "luminance": 0.06371
}

Semantic roles & 50–950 ramp

primary
#7B187E
secondary
#43B23F
accent
#EB3D42
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B187E

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

Preview Lab → · Contrast checker → · Palette generator →

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