#7B187F#7B187F

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

Color values

HEX#7B187F
RGBrgb(123, 24, 127)
HSLhsl(298, 68%, 30%)
HSVhsv(298, 81%, 50%)
CMYKcmyk(3.1%, 81.1%, 0%, 50.2%)
CIE-LABlab(30.39, 53.11, -34.94)
CIE-LCHlch(30.39, 63.57, 326.66°)
OKLaboklab(42.33% 0.1461 -0.0972)
OKLCHoklch(42.33% 0.176 326.4)
XYZxyz(12.3255, 6.3974, 20.6602)
Luminance0.0640 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B187F #1C7F18
analogous
#48187F #7B187F #7F1850
triadic
#7B187F #7F7B18 #187F7B
tetradic
#7B187F #7F4818 #1C7F18 #18507F
square
#7B187F #7F4818 #1C7F18 #18507F
split-complementary
#7B187F #507F18 #187F48
monochromatic
#19051A #490E4C #7B187F #AD22B2 #D338D9

Accessibility & contrast

On white

9.21
#7B187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7B187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B187F
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B187F#FFFFFF#000000##FFFFFF
##7B187F1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#324C7D
Tritanopia (blue-blind)
#7E2B4C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7b187f;
/* rgb */ color: rgb(123, 24, 127);
/* oklch */ color: oklch(42.3% 0.176 326.4);
Tailwind
colors: {
  custom: {
    50: '#a563a4',
    500: '#7b187f',
    950: '#000000',
  },
}
SCSS
$custom: #7b187f;
$custom-light: #a563a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b187f",
  "rgb": {
    "r": 123,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 297.67,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42327,
    "c": 0.17551,
    "h": 326.4
  },
  "luminance": 0.06397
}

Semantic roles & 50–950 ramp

primary
#7B187F
secondary
#44B33F
accent
#EB3D44
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B187F

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

Preview Lab → · Contrast checker → · Palette generator →

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