#7B1F98#7B1F98

#7B1F98 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.6% C 0.190 H 316.3°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#7B1F98
RGBrgb(123, 31, 152)
HSLhsl(286, 66%, 36%)
HSVhsv(286, 80%, 60%)
CMYKcmyk(19.1%, 79.6%, 0%, 40.4%)
CIE-LABlab(32.83, 55.62, -46.51)
CIE-LCHlch(32.83, 72.50, 320.10°)
OKLaboklab(44.59% 0.1374 -0.1311)
OKLCHoklch(44.59% 0.19 316.3)
XYZxyz(14.3250, 7.4585, 30.3847)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1F98 #3C981F
analogous
#3E1F98 #7B1F98 #981F78
triadic
#7B1F98 #987B1F #1F987B
tetradic
#7B1F98 #983E1F #3C981F #1F7898
square
#7B1F98 #983E1F #3C981F #1F7898
split-complementary
#7B1F98 #78981F #1F983E
monochromatic
#290A32 #521565 #7B1F98 #A429CB #BC55DC

Accessibility & contrast

On white

8.43
#7B1F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7B1F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1F98
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1F98#FFFFFF#000000##FFFFFF
##7B1F981.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b1f98;
/* rgb */ color: rgb(123, 31, 152);
/* oklch */ color: oklch(44.6% 0.190 316.3);
Tailwind
colors: {
  custom: {
    50: '#a566b7',
    500: '#7b1f98',
    950: '#000000',
  },
}
SCSS
$custom: #7b1f98;
$custom-light: #a566b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1f98",
  "rgb": {
    "r": 123,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 285.62,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.44585,
    "c": 0.18992,
    "h": 316.3
  },
  "luminance": 0.07458
}

Semantic roles & 50–950 ramp

primary
#7B1F98
secondary
#6DC053
accent
#E93F68
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7B1F98

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

Preview Lab → · Contrast checker → · Palette generator →

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