#7B158E#7B158E

#7B158E is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.2% C 0.190 H 320.4°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#7B158E
RGBrgb(123, 21, 142)
HSLhsl(291, 74%, 32%)
HSVhsv(291, 85%, 56%)
CMYKcmyk(13.4%, 85.2%, 0%, 44.3%)
CIE-LABlab(31.12, 56.61, -43.13)
CIE-LCHlch(31.12, 71.17, 322.70°)
OKLaboklab(43.16% 0.1466 -0.1211)
OKLCHoklch(43.16% 0.19 320.4)
XYZxyz(13.3184, 6.7010, 26.1778)
Luminance0.0670 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B158E #288E15
analogous
#3F158E #7B158E #8E1564
triadic
#7B158E #8E7B15 #158E7B
tetradic
#7B158E #8E3F15 #288E15 #15648E
square
#7B158E #8E3F15 #288E15 #15648E
split-complementary
#7B158E #648E15 #158E3F
monochromatic
#1F0523 #4D0D59 #7B158E #A91DC3 #C83BE2

Accessibility & contrast

On white

8.97
#7B158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7B158E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B158E
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B158E#FFFFFF#000000##FFFFFF
##7B158E1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#244D8B
Tritanopia (blue-blind)
#7B3254
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7b158e;
/* rgb */ color: rgb(123, 21, 142);
/* oklch */ color: oklch(43.2% 0.190 320.4);
Tailwind
colors: {
  custom: {
    50: '#a562b0',
    500: '#7b158e',
    950: '#000000',
  },
}
SCSS
$custom: #7b158e;
$custom-light: #a562b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b158e",
  "rgb": {
    "r": 123,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 290.579,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.43156,
    "c": 0.19018,
    "h": 320.4
  },
  "luminance": 0.067
}

Semantic roles & 50–950 ramp

primary
#7B158E
secondary
#52C23D
accent
#F13754
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B158E

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

Preview Lab → · Contrast checker → · Palette generator →

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