#7B157D#7B157D

#7B157D is a dark, vivid purple. Relative luminance 0.062; OKLCH L 42.0% C 0.177 H 327.3°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#7B157D
RGBrgb(123, 21, 125)
HSLhsl(299, 71%, 29%)
HSVhsv(299, 83%, 49%)
CMYKcmyk(1.6%, 83.2%, 0%, 51%)
CIE-LABlab(29.98, 53.59, -34.34)
CIE-LCHlch(29.98, 63.65, 327.35°)
OKLaboklab(42% 0.1486 -0.0954)
OKLCHoklch(42% 0.177 327.3)
XYZxyz(12.1380, 6.2288, 19.9610)
Luminance0.0623 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B157D #177D15
analogous
#47157D #7B157D #7D154B
triadic
#7B157D #7D7B15 #157D7B
tetradic
#7B157D #7D4715 #177D15 #154B7D
square
#7B157D #7D4715 #177D15 #154B7D
split-complementary
#7B157D #4B7D15 #157D47
monochromatic
#1A041A #470C49 #7B157D #AF1EB1 #D930DC

Accessibility & contrast

On white

9.35
#7B157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7B157D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B157D
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B157D#FFFFFF#000000##FFFFFF
##7B157D1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#324B7B
Tritanopia (blue-blind)
#7F294A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7b157d;
/* rgb */ color: rgb(123, 21, 125);
/* oklch */ color: oklch(42.0% 0.177 327.3);
Tailwind
colors: {
  custom: {
    50: '#a561a3',
    500: '#7b157d',
    950: '#000000',
  },
}
SCSS
$custom: #7b157d;
$custom-light: #a561a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b157d",
  "rgb": {
    "r": 123,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 298.846,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41995,
    "c": 0.17658,
    "h": 327.3
  },
  "luminance": 0.06228
}

Semantic roles & 50–950 ramp

primary
#7B157D
secondary
#3EB23C
accent
#EE3A3D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B157D

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

Preview Lab → · Contrast checker → · Palette generator →

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