#7B157F#7B157F

#7B157F is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.1% C 0.178 H 326.4°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#7B157F
RGBrgb(123, 21, 127)
HSLhsl(298, 72%, 29%)
HSVhsv(298, 83%, 50%)
CMYKcmyk(3.1%, 83.5%, 0%, 50.2%)
CIE-LABlab(30.11, 53.93, -35.39)
CIE-LCHlch(30.11, 64.51, 326.73°)
OKLaboklab(42.13% 0.1484 -0.0985)
OKLCHoklch(42.13% 0.178 326.4)
XYZxyz(12.2671, 6.2805, 20.6407)
Luminance0.0628 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B157F #197F15
analogous
#46157F #7B157F #7F154E
triadic
#7B157F #7F7B15 #157F7B
tetradic
#7B157F #7F4615 #197F15 #154E7F
square
#7B157F #7F4615 #197F15 #154E7F
split-complementary
#7B157F #4E7F15 #157F46
monochromatic
#19041A #480C4A #7B157F #AE1EB4 #D731DD

Accessibility & contrast

On white

9.31
#7B157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7B157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B157F
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B157F#FFFFFF#000000##FFFFFF
##7B157F1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#314B7D
Tritanopia (blue-blind)
#7E2A4B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7b157f;
/* rgb */ color: rgb(123, 21, 127);
/* oklch */ color: oklch(42.1% 0.178 326.4);
Tailwind
colors: {
  custom: {
    50: '#a562a5',
    500: '#7b157f',
    950: '#000000',
  },
}
SCSS
$custom: #7b157f;
$custom-light: #a562a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b157f",
  "rgb": {
    "r": 123,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 297.736,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.42125,
    "c": 0.17816,
    "h": 326.4
  },
  "luminance": 0.0628
}

Semantic roles & 50–950 ramp

primary
#7B157F
secondary
#40B43C
accent
#EE3940
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B157F

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

Preview Lab → · Contrast checker → · Palette generator →

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