#7D156E#7D156E

#7D156E is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.4% C 0.166 H 335.1°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#7D156E
RGBrgb(125, 21, 110)
HSLhsl(309, 71%, 29%)
HSVhsv(309, 83%, 49%)
CMYKcmyk(0%, 83.2%, 12%, 51%)
CIE-LABlab(29.47, 51.59, -25.59)
CIE-LCHlch(29.47, 57.59, 333.62°)
OKLaboklab(41.42% 0.1508 -0.07)
OKLCHoklch(41.42% 0.166 335.1)
XYZxyz(11.5402, 6.0232, 15.3036)
Luminance0.0602 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D156E #157D24
analogous
#58157D #7D156E #7D153A
triadic
#7D156E #6E7D15 #156E7D
tetradic
#7D156E #7D5815 #157D24 #153A7D
square
#7D156E #7D5815 #157D24 #153A7D
split-complementary
#7D156E #3A7D15 #157D58
monochromatic
#1A0417 #490C40 #7D156E #B11E9C #DC30C3

Accessibility & contrast

On white

9.53
#7D156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#7D156E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D156E
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D156E#FFFFFF#000000##FFFFFF
##7D156E1.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143C70
Deuteranopia (green-blind)
#3D4B6C
Tritanopia (blue-blind)
#841F41
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7d156e;
/* rgb */ color: rgb(125, 21, 110);
/* oklch */ color: oklch(41.4% 0.166 335.1);
Tailwind
colors: {
  custom: {
    50: '#a66198',
    500: '#7d156e',
    950: '#000000',
  },
}
SCSS
$custom: #7d156e;
$custom-light: #a66198;
$custom-dark: #000000;
JSON
{
  "hex": "#7d156e",
  "rgb": {
    "r": 125,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 308.654,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41415,
    "c": 0.16628,
    "h": 335.1
  },
  "luminance": 0.06022
}

Semantic roles & 50–950 ramp

primary
#7D156E
secondary
#3CB24D
accent
#EE543A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7D156E

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

Preview Lab → · Contrast checker → · Palette generator →

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