#7B117E#7B117E

#7B117E is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.8% C 0.180 H 326.9°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#7B117E
RGBrgb(123, 17, 126)
HSLhsl(298, 76%, 28%)
HSVhsv(298, 87%, 49%)
CMYKcmyk(2.4%, 86.5%, 0%, 50.6%)
CIE-LABlab(29.71, 54.74, -35.40)
CIE-LCHlch(29.71, 65.19, 327.11°)
OKLaboklab(41.82% 0.1512 -0.0985)
OKLCHoklch(41.82% 0.181 326.9)
XYZxyz(12.1345, 6.1191, 20.2766)
Luminance0.0612 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B117E #147E11
analogous
#45117E #7B117E #7E114A
triadic
#7B117E #7E7B11 #117E7B
tetradic
#7B117E #7E4511 #147E11 #114A7E
square
#7B117E #7E4511 #147E11 #114A7E
split-complementary
#7B117E #4A7E11 #117E45
monochromatic
#1A041B #460A48 #7B117E #B018B4 #DD27E2

Accessibility & contrast

On white

9.44
#7B117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#7B117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B117E
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B117E#FFFFFF#000000##FFFFFF
##7B117E1.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#304A7C
Tritanopia (blue-blind)
#7F274A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7b117e;
/* rgb */ color: rgb(123, 17, 126);
/* oklch */ color: oklch(41.8% 0.180 326.9);
Tailwind
colors: {
  custom: {
    50: '#a560a4',
    500: '#7b117e',
    950: '#000000',
  },
}
SCSS
$custom: #7b117e;
$custom-light: #a560a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b117e",
  "rgb": {
    "r": 123,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 298.349,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.41823,
    "c": 0.1805,
    "h": 326.9
  },
  "luminance": 0.06118
}

Semantic roles & 50–950 ramp

primary
#7B117E
secondary
#3AB437
accent
#F3353A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B117E

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

Preview Lab → · Contrast checker → · Palette generator →

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