#7B1F88#7B1F88

#7B1F88 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.5% C 0.176 H 322.4°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#7B1F88
RGBrgb(123, 31, 136)
HSLhsl(293, 63%, 33%)
HSVhsv(293, 77%, 53%)
CMYKcmyk(9.6%, 77.2%, 0%, 46.7%)
CIE-LABlab(31.74, 52.52, -38.41)
CIE-LCHlch(31.74, 65.07, 323.82°)
OKLaboklab(43.47% 0.1394 -0.1074)
OKLCHoklch(43.47% 0.176 322.4)
XYZxyz(13.1018, 6.9693, 23.9429)
Luminance0.0697 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1F88 #2C881F
analogous
#461F88 #7B1F88 #881F61
triadic
#7B1F88 #887B1F #1F887B
tetradic
#7B1F88 #88461F #2C881F #1F6188
square
#7B1F88 #88461F #2C881F #1F6188
split-complementary
#7B1F88 #61881F #1F8846
monochromatic
#210824 #4E1456 #7B1F88 #A82ABA #C54BD6

Accessibility & contrast

On white

8.77
#7B1F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7B1F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1F88
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1F88#FFFFFF#000000##FFFFFF
##7B1F881.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448B
Deuteranopia (green-blind)
#2F4E86
Tritanopia (blue-blind)
#7D3352
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7b1f88;
/* rgb */ color: rgb(123, 31, 136);
/* oklch */ color: oklch(43.5% 0.176 322.4);
Tailwind
colors: {
  custom: {
    50: '#a566ab',
    500: '#7b1f88',
    950: '#000000',
  },
}
SCSS
$custom: #7b1f88;
$custom-light: #a566ab;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1f88",
  "rgb": {
    "r": 123,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 292.571,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.43465,
    "c": 0.17598,
    "h": 322.4
  },
  "luminance": 0.06969
}

Semantic roles & 50–950 ramp

primary
#7B1F88
secondary
#58B94A
accent
#E64256
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B1F88

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

Preview Lab → · Contrast checker → · Palette generator →

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