#7B2F71#7B2F71

#7B2F71 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 43.8% C 0.135 H 333.1°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#7B2F71
RGBrgb(123, 47, 113)
HSLhsl(308, 45%, 33%)
HSVhsv(308, 62%, 48%)
CMYKcmyk(0%, 61.8%, 8.1%, 51.8%)
CIE-LABlab(32.78, 41.71, -22.34)
CIE-LCHlch(32.78, 47.32, 331.83°)
OKLaboklab(43.8% 0.12 -0.061)
OKLCHoklch(43.8% 0.135 333.1)
XYZxyz(12.1655, 7.4371, 16.4143)
Luminance0.0744 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2F71 #2F7B39
analogous
#5F2F7B #7B2F71 #7B2F4B
triadic
#7B2F71 #717B2F #2F717B
tetradic
#7B2F71 #7B5F2F #2F7B39 #2F4B7B
square
#7B2F71 #7B5F2F #2F7B39 #2F4B7B
split-complementary
#7B2F71 #4B7B2F #2F7B5F
monochromatic
#220D20 #4F1E48 #7B2F71 #A7409A #C362B6

Accessibility & contrast

On white

8.44
#7B2F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B2F71
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2F71#FFFFFF#000000##FFFFFF
##7B2F711.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4673
Deuteranopia (green-blind)
#45516F
Tritanopia (blue-blind)
#80354B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7b2f71;
/* rgb */ color: rgb(123, 47, 113);
/* oklch */ color: oklch(43.8% 0.135 333.1);
Tailwind
colors: {
  custom: {
    50: '#a46d9a',
    500: '#7b2f71',
    950: '#000000',
  },
}
SCSS
$custom: #7b2f71;
$custom-light: #a46d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2f71",
  "rgb": {
    "r": 123,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 307.895,
    "s": 44.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.43796,
    "c": 0.13458,
    "h": 333.1
  },
  "luminance": 0.07436
}

Semantic roles & 50–950 ramp

primary
#7B2F71
secondary
#5CAA66
accent
#D46453
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#0F070E
muted
#7F7A7E

Preview Lab

Preview with #7B2F71

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

Preview Lab → · Contrast checker → · Palette generator →

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