#7B1F74#7B1F74

#7B1F74 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.2% C 0.159 H 331.3°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#7B1F74
RGBrgb(123, 31, 116)
HSLhsl(305, 60%, 30%)
HSVhsv(305, 75%, 48%)
CMYKcmyk(0%, 74.8%, 5.7%, 51.8%)
CIE-LABlab(30.53, 48.96, -27.78)
CIE-LCHlch(30.53, 56.29, 330.43°)
OKLaboklab(42.21% 0.1398 -0.0765)
OKLCHoklch(42.21% 0.159 331.3)
XYZxyz(11.8107, 6.4528, 17.1431)
Luminance0.0645 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1F74 #1F7B26
analogous
#541F7B #7B1F74 #7B1F46
triadic
#7B1F74 #747B1F #1F747B
tetradic
#7B1F74 #7B541F #1F7B26 #1F467B
square
#7B1F74 #7B541F #1F7B26 #1F467B
split-complementary
#7B1F74 #467B1F #1F7B54
monochromatic
#190618 #4A1346 #7B1F74 #AC2BA2 #D044C5

Accessibility & contrast

On white

9.17
#7B1F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7B1F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1F74
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1F74#FFFFFF#000000##FFFFFF
##7B1F741.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174076
Deuteranopia (green-blind)
#3C4C72
Tritanopia (blue-blind)
#802A47
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7b1f74;
/* rgb */ color: rgb(123, 31, 116);
/* oklch */ color: oklch(42.2% 0.159 331.3);
Tailwind
colors: {
  custom: {
    50: '#a4659c',
    500: '#7b1f74',
    950: '#000000',
  },
}
SCSS
$custom: #7b1f74;
$custom-light: #a4659c;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1f74",
  "rgb": {
    "r": 123,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 304.565,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42211,
    "c": 0.15935,
    "h": 331.3
  },
  "luminance": 0.06452
}

Semantic roles & 50–950 ramp

primary
#7B1F74
secondary
#48AE4F
accent
#E35145
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B1F74

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

Preview Lab → · Contrast checker → · Palette generator →

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