#7E187B#7E187B

#7E187B is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.6% C 0.174 H 329.4°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#7E187B
RGBrgb(126, 24, 123)
HSLhsl(302, 68%, 29%)
HSVhsv(302, 81%, 49%)
CMYKcmyk(0%, 81%, 2.4%, 50.6%)
CIE-LABlab(30.69, 53.07, -31.92)
CIE-LCHlch(30.69, 61.93, 328.97°)
OKLaboklab(42.56% 0.1497 -0.0883)
OKLCHoklch(42.56% 0.174 329.4)
XYZxyz(12.5059, 6.5199, 19.3349)
Luminance0.0652 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E187B #187E1B
analogous
#4E187E #7E187B #7E1848
triadic
#7E187B #7B7E18 #187B7E
tetradic
#7E187B #7E4E18 #187E1B #18487E
square
#7E187B #7E4E18 #187E1B #18487E
split-complementary
#7E187B #487E18 #187E4E
monochromatic
#1A0519 #4B0E49 #7E187B #B122AD #D937D4

Accessibility & contrast

On white

9.12
#7E187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7E187B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E187B
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E187B#FFFFFF#000000##FFFFFF
##7E187B1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03407E
Deuteranopia (green-blind)
#384D79
Tritanopia (blue-blind)
#832849
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e187b;
/* rgb */ color: rgb(126, 24, 123);
/* oklch */ color: oklch(42.6% 0.174 329.4);
Tailwind
colors: {
  custom: {
    50: '#a763a1',
    500: '#7e187b',
    950: '#000000',
  },
}
SCSS
$custom: #7e187b;
$custom-light: #a763a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e187b",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 301.765,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.4256,
    "c": 0.17378,
    "h": 329.4
  },
  "luminance": 0.06519
}

Semantic roles & 50–950 ramp

primary
#7E187B
secondary
#3FB243
accent
#EB423D
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E187B

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

Preview Lab → · Contrast checker → · Palette generator →

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