#7B1F9D#7B1F9D

#7B1F9D is a dark, vivid purple. Relative luminance 0.076; OKLCH L 45.0% C 0.194 H 314.6°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#7B1F9D
RGBrgb(123, 31, 157)
HSLhsl(284, 67%, 37%)
HSVhsv(284, 80%, 62%)
CMYKcmyk(21.7%, 80.3%, 0%, 38.4%)
CIE-LABlab(33.19, 56.62, -48.97)
CIE-LCHlch(33.19, 74.86, 319.14°)
OKLaboklab(44.95% 0.1365 -0.1383)
OKLCHoklch(44.95% 0.194 314.6)
XYZxyz(14.7431, 7.6258, 32.5871)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1F9D #419D1F
analogous
#3C1F9D #7B1F9D #9D1F80
triadic
#7B1F9D #9D7B1F #1F9D7B
tetradic
#7B1F9D #9D3C1F #419D1F #1F809D
square
#7B1F9D #9D3C1F #419D1F #1F809D
split-complementary
#7B1F9D #809D1F #1F9D3C
monochromatic
#2B0B37 #53156A #7B1F9D #A329D0 #BA58DE

Accessibility & contrast

On white

8.32
#7B1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7B1F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1F9D
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1F9D#FFFFFF#000000##FFFFFF
##7B1F9D1.008.322.538.32
#FFFFFF8.321.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A0
Deuteranopia (green-blind)
#15509A
Tritanopia (blue-blind)
#783D5E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b1f9d;
/* rgb */ color: rgb(123, 31, 157);
/* oklch */ color: oklch(45.0% 0.194 314.6);
Tailwind
colors: {
  custom: {
    50: '#a667bb',
    500: '#7b1f9d',
    950: '#000000',
  },
}
SCSS
$custom: #7b1f9d;
$custom-light: #a667bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1f9d",
  "rgb": {
    "r": 123,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 283.81,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.44954,
    "c": 0.19434,
    "h": 314.6
  },
  "luminance": 0.07625
}

Semantic roles & 50–950 ramp

primary
#7B1F9D
secondary
#73C256
accent
#EA3E6C
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B1F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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