#7B2F8D#7B2F8D

#7B2F8D is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.4% C 0.161 H 319.4°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#7B2F8D
RGBrgb(123, 47, 141)
HSLhsl(289, 50%, 37%)
HSVhsv(289, 67%, 55%)
CMYKcmyk(12.8%, 66.7%, 0%, 44.7%)
CIE-LABlab(34.33, 47.07, -37.36)
CIE-LCHlch(34.33, 60.09, 321.56°)
OKLaboklab(45.42% 0.1219 -0.1044)
OKLCHoklch(45.42% 0.161 319.4)
XYZxyz(13.9920, 8.1677, 26.0336)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2F8D #418D2F
analogous
#4C2F8D #7B2F8D #8D2F70
triadic
#7B2F8D #8D7B2F #2F8D7B
tetradic
#7B2F8D #8D4C2F #418D2F #2F708D
square
#7B2F8D #8D4C2F #418D2F #2F708D
split-complementary
#7B2F8D #708D2F #2F8D4C
monochromatic
#2B1031 #53205F #7B2F8D #A33EBB #BA69CD

Accessibility & contrast

On white

7.97
#7B2F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7B2F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2F8D
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2F8D#FFFFFF#000000##FFFFFF
##7B2F8D1.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114C90
Deuteranopia (green-blind)
#36538B
Tritanopia (blue-blind)
#7B3F5A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7b2f8d;
/* rgb */ color: rgb(123, 47, 141);
/* oklch */ color: oklch(45.4% 0.161 319.4);
Tailwind
colors: {
  custom: {
    50: '#a46daf',
    500: '#7b2f8d',
    950: '#000000',
  },
}
SCSS
$custom: #7b2f8d;
$custom-light: #a46daf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2f8d",
  "rgb": {
    "r": 123,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 288.511,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45422,
    "c": 0.16054,
    "h": 319.4
  },
  "luminance": 0.08167
}

Semantic roles & 50–950 ramp

primary
#7B2F8D
secondary
#73B464
accent
#DA4E69
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B2F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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