#7B157C#7B157C

#7B157C is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.9% C 0.176 H 327.7°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#7B157C
RGBrgb(123, 21, 124)
HSLhsl(299, 71%, 28%)
HSVhsv(299, 83%, 49%)
CMYKcmyk(0.8%, 83.1%, 0%, 51.4%)
CIE-LABlab(29.92, 53.42, -33.80)
CIE-LCHlch(29.92, 63.22, 327.67°)
OKLaboklab(41.93% 0.1486 -0.0939)
OKLCHoklch(41.93% 0.176 327.7)
XYZxyz(12.0745, 6.2034, 19.6263)
Luminance0.0620 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B157C #167C15
analogous
#47157C #7B157C #7C1549
triadic
#7B157C #7C7B15 #157C7B
tetradic
#7B157C #7C4715 #167C15 #15497C
square
#7B157C #7C4715 #167C15 #15497C
split-complementary
#7B157C #497C15 #157C47
monochromatic
#1A041A #470C48 #7B157C #AF1EB0 #DA30DC

Accessibility & contrast

On white

9.37
#7B157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7B157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B157C
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B157C#FFFFFF#000000##FFFFFF
##7B157C1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7F
Deuteranopia (green-blind)
#334B7A
Tritanopia (blue-blind)
#7F2849
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7b157c;
/* rgb */ color: rgb(123, 21, 124);
/* oklch */ color: oklch(41.9% 0.176 327.7);
Tailwind
colors: {
  custom: {
    50: '#a561a2',
    500: '#7b157c',
    950: '#000000',
  },
}
SCSS
$custom: #7b157c;
$custom-light: #a561a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b157c",
  "rgb": {
    "r": 123,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 299.417,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.4193,
    "c": 0.1758,
    "h": 327.7
  },
  "luminance": 0.06203
}

Semantic roles & 50–950 ramp

primary
#7B157C
secondary
#3DB13C
accent
#EE3A3C
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B157C

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

Preview Lab → · Contrast checker → · Palette generator →

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