#7A158F#7A158F

#7A158F is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.1% C 0.191 H 319.6°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#7A158F
RGBrgb(122, 21, 143)
HSLhsl(290, 74%, 32%)
HSVhsv(290, 85%, 56%)
CMYKcmyk(14.7%, 85.3%, 0%, 43.9%)
CIE-LABlab(31.01, 56.62, -43.92)
CIE-LCHlch(31.01, 71.65, 322.20°)
OKLaboklab(43.07% 0.1452 -0.1235)
OKLCHoklch(43.07% 0.191 319.6)
XYZxyz(13.2515, 6.6578, 26.5684)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A158F #2A8F15
analogous
#3D158F #7A158F #8F1567
triadic
#7A158F #8F7A15 #158F7A
tetradic
#7A158F #8F3D15 #2A8F15 #15678F
square
#7A158F #8F3D15 #2A8F15 #15678F
split-complementary
#7A158F #678F15 #158F3D
monochromatic
#1F0524 #4C0D5A #7A158F #A81DC4 #C63CE2

Accessibility & contrast

On white

9.01
#7A158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7A158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A158F
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A158F#FFFFFF#000000##FFFFFF
##7A158F1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#214C8C
Tritanopia (blue-blind)
#7A3254
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7a158f;
/* rgb */ color: rgb(122, 21, 143);
/* oklch */ color: oklch(43.1% 0.191 319.6);
Tailwind
colors: {
  custom: {
    50: '#a562b0',
    500: '#7a158f',
    950: '#000000',
  },
}
SCSS
$custom: #7a158f;
$custom-light: #a562b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a158f",
  "rgb": {
    "r": 122,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 289.672,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43074,
    "c": 0.19063,
    "h": 319.6
  },
  "luminance": 0.06657
}

Semantic roles & 50–950 ramp

primary
#7A158F
secondary
#55C23E
accent
#F13757
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7A158F

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

Preview Lab → · Contrast checker → · Palette generator →

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