#7A158E#7A158E

#7A158E is a dark, vivid purple. Relative luminance 0.066; OKLCH L 43.0% C 0.190 H 320.0°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#7A158E
RGBrgb(122, 21, 142)
HSLhsl(290, 74%, 32%)
HSVhsv(290, 85%, 56%)
CMYKcmyk(14.1%, 85.2%, 0%, 44.3%)
CIE-LABlab(30.94, 56.43, -43.41)
CIE-LCHlch(30.94, 71.20, 322.43°)
OKLaboklab(43% 0.1454 -0.122)
OKLCHoklch(43% 0.19 320)
XYZxyz(13.1761, 6.6276, 26.1712)
Luminance0.0663 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A158E #298E15
analogous
#3E158E #7A158E #8E1565
triadic
#7A158E #8E7A15 #158E7A
tetradic
#7A158E #8E3E15 #298E15 #15658E
square
#7A158E #8E3E15 #298E15 #15658E
split-complementary
#7A158E #658E15 #158E3E
monochromatic
#1E0523 #4C0D59 #7A158E #A81DC3 #C73BE2

Accessibility & contrast

On white

9.03
#7A158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A158E
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A158E#FFFFFF#000000##FFFFFF
##7A158E1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#224C8B
Tritanopia (blue-blind)
#7A3254
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7a158e;
/* rgb */ color: rgb(122, 21, 142);
/* oklch */ color: oklch(43.0% 0.190 320.0);
Tailwind
colors: {
  custom: {
    50: '#a562b0',
    500: '#7a158e',
    950: '#000000',
  },
}
SCSS
$custom: #7a158e;
$custom-light: #a562b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a158e",
  "rgb": {
    "r": 122,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 290.083,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.43001,
    "c": 0.18981,
    "h": 320
  },
  "luminance": 0.06627
}

Semantic roles & 50–950 ramp

primary
#7A158E
secondary
#53C23D
accent
#F13756
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A158E

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

Preview Lab → · Contrast checker → · Palette generator →

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