#7B159E#7B159E

#7B159E is a dark, highly saturated purple. Relative luminance 0.072; OKLCH L 44.4% C 0.203 H 314.8°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#7B159E
RGBrgb(123, 21, 158)
HSLhsl(285, 77%, 35%)
HSVhsv(285, 87%, 62%)
CMYKcmyk(22.2%, 86.7%, 0%, 38%)
CIE-LABlab(32.29, 59.65, -51.03)
CIE-LCHlch(32.29, 78.50, 319.46°)
OKLaboklab(44.35% 0.1433 -0.1443)
OKLCHoklch(44.35% 0.203 314.8)
XYZxyz(14.6071, 7.2165, 32.9646)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B159E #389E15
analogous
#37159E #7B159E #9E157C
triadic
#7B159E #9E7B15 #159E7B
tetradic
#7B159E #9E3715 #389E15 #157C9E
square
#7B159E #9E3715 #389E15 #157C9E
split-complementary
#7B159E #7C9E15 #159E37
monochromatic
#270732 #510E68 #7B159E #A51CD4 #BE47E7

Accessibility & contrast

On white

8.60
#7B159E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7B159E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B159E
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B159E#FFFFFF#000000##FFFFFF
##7B159E1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#044E9B
Tritanopia (blue-blind)
#783A5D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7b159e;
/* rgb */ color: rgb(123, 21, 158);
/* oklch */ color: oklch(44.4% 0.203 314.8);
Tailwind
colors: {
  custom: {
    50: '#a663bb',
    500: '#7b159e',
    950: '#000000',
  },
}
SCSS
$custom: #7b159e;
$custom-light: #a663bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b159e",
  "rgb": {
    "r": 123,
    "g": 21,
    "b": 158
  },
  "hsl": {
    "h": 284.672,
    "s": 76.536,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44351,
    "c": 0.20339,
    "h": 314.8
  },
  "luminance": 0.07216
}

Semantic roles & 50–950 ramp

primary
#7B159E
secondary
#68C747
accent
#F33565
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7B159E

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

Preview Lab → · Contrast checker → · Palette generator →

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