#7B157E#7B157E

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

Color values

HEX#7B157E
RGBrgb(123, 21, 126)
HSLhsl(298, 71%, 29%)
HSVhsv(298, 83%, 49%)
CMYKcmyk(2.4%, 83.3%, 0%, 50.6%)
CIE-LABlab(30.05, 53.76, -34.86)
CIE-LCHlch(30.05, 64.08, 327.04°)
OKLaboklab(42.06% 0.1485 -0.097)
OKLCHoklch(42.06% 0.177 326.9)
XYZxyz(12.2022, 6.2545, 20.2992)
Luminance0.0625 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B157E #187E15
analogous
#47157E #7B157E #7E154D
triadic
#7B157E #7E7B15 #157E7B
tetradic
#7B157E #7E4715 #187E15 #154D7E
square
#7B157E #7E4715 #187E15 #154D7E
split-complementary
#7B157E #4D7E15 #157E47
monochromatic
#1A041A #480C4A #7B157E #AE1EB2 #D831DD

Accessibility & contrast

On white

9.33
#7B157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B157E
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B157E#FFFFFF#000000##FFFFFF
##7B157E1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#324B7C
Tritanopia (blue-blind)
#7F294B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7b157e;
/* rgb */ color: rgb(123, 21, 126);
/* oklch */ color: oklch(42.1% 0.177 326.9);
Tailwind
colors: {
  custom: {
    50: '#a562a4',
    500: '#7b157e',
    950: '#000000',
  },
}
SCSS
$custom: #7b157e;
$custom-light: #a562a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b157e",
  "rgb": {
    "r": 123,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 298.286,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.4206,
    "c": 0.17737,
    "h": 326.9
  },
  "luminance": 0.06254
}

Semantic roles & 50–950 ramp

primary
#7B157E
secondary
#3FB33C
accent
#EE3A3F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B157E

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

Preview Lab → · Contrast checker → · Palette generator →

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