#7B1F99#7B1F99

#7B1F99 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.7% C 0.191 H 316.0°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#7B1F99
RGBrgb(123, 31, 153)
HSLhsl(285, 66%, 36%)
HSVhsv(285, 80%, 60%)
CMYKcmyk(19.6%, 79.7%, 0%, 40%)
CIE-LABlab(32.90, 55.82, -47.00)
CIE-LCHlch(32.90, 72.97, 319.90°)
OKLaboklab(44.66% 0.1372 -0.1326)
OKLCHoklch(44.66% 0.191 316)
XYZxyz(14.4072, 7.4914, 30.8179)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1F99 #3D991F
analogous
#3E1F99 #7B1F99 #991F7A
triadic
#7B1F99 #997B1F #1F997B
tetradic
#7B1F99 #993E1F #3D991F #1F7A99
square
#7B1F99 #993E1F #3D991F #1F7A99
split-complementary
#7B1F99 #7A991F #1F993E
monochromatic
#290A33 #521566 #7B1F99 #A429CC #BC56DD

Accessibility & contrast

On white

8.41
#7B1F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7B1F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1F99
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1F99#FFFFFF#000000##FFFFFF
##7B1F991.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489C
Deuteranopia (green-blind)
#1C5096
Tritanopia (blue-blind)
#793B5C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7b1f99;
/* rgb */ color: rgb(123, 31, 153);
/* oklch */ color: oklch(44.7% 0.191 316.0);
Tailwind
colors: {
  custom: {
    50: '#a566b8',
    500: '#7b1f99',
    950: '#000000',
  },
}
SCSS
$custom: #7b1f99;
$custom-light: #a566b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1f99",
  "rgb": {
    "r": 123,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 285.246,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44658,
    "c": 0.1908,
    "h": 316
  },
  "luminance": 0.07491
}

Semantic roles & 50–950 ramp

primary
#7B1F99
secondary
#6EC054
accent
#E93F69
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7B1F99

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

Preview Lab → · Contrast checker → · Palette generator →

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