#7E117B#7E117B

#7E117B is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.1% C 0.180 H 329.5°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#7E117B
RGBrgb(126, 17, 123)
HSLhsl(302, 76%, 28%)
HSVhsv(302, 87%, 49%)
CMYKcmyk(0%, 86.5%, 2.4%, 50.6%)
CIE-LABlab(30.08, 54.84, -32.89)
CIE-LCHlch(30.08, 63.95, 329.05°)
OKLaboklab(42.13% 0.1547 -0.0911)
OKLCHoklch(42.13% 0.18 329.5)
XYZxyz(12.3797, 6.2676, 19.2928)
Luminance0.0627 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E117B #117E14
analogous
#4A117E #7E117B #7E1145
triadic
#7E117B #7B7E11 #117B7E
tetradic
#7E117B #7E4A11 #117E14 #11457E
square
#7E117B #7E4A11 #117E14 #11457E
split-complementary
#7E117B #457E11 #117E4A
monochromatic
#1B041A #480A46 #7E117B #B418B0 #E227DD

Accessibility & contrast

On white

9.32
#7E117B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7E117B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E117B
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E117B#FFFFFF#000000##FFFFFF
##7E117B1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#364C79
Tritanopia (blue-blind)
#832548
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e117b;
/* rgb */ color: rgb(126, 17, 123);
/* oklch */ color: oklch(42.1% 0.180 329.5);
Tailwind
colors: {
  custom: {
    50: '#a761a1',
    500: '#7e117b',
    950: '#000000',
  },
}
SCSS
$custom: #7e117b;
$custom-light: #a761a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e117b",
  "rgb": {
    "r": 126,
    "g": 17,
    "b": 123
  },
  "hsl": {
    "h": 301.651,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.42126,
    "c": 0.17956,
    "h": 329.5
  },
  "luminance": 0.06267
}

Semantic roles & 50–950 ramp

primary
#7E117B
secondary
#37B43A
accent
#F33A35
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E117B

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

Preview Lab → · Contrast checker → · Palette generator →

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