#7B298D#7B298D

#7B298D is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.8% C 0.169 H 319.8°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#7B298D
RGBrgb(123, 41, 141)
HSLhsl(289, 55%, 36%)
HSVhsv(289, 71%, 55%)
CMYKcmyk(12.8%, 70.9%, 0%, 44.7%)
CIE-LABlab(33.39, 49.69, -38.85)
CIE-LCHlch(33.39, 63.08, 321.98°)
OKLaboklab(44.75% 0.1289 -0.1088)
OKLCHoklch(44.75% 0.169 319.8)
XYZxyz(13.7684, 7.7206, 25.9591)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B298D #3B8D29
analogous
#49298D #7B298D #8D296D
triadic
#7B298D #8D7B29 #298D7B
tetradic
#7B298D #8D4929 #3B8D29 #296D8D
square
#7B298D #8D4929 #3B8D29 #296D8D
split-complementary
#7B298D #6D8D29 #298D49
monochromatic
#280D2E #521B5E #7B298D #A437BC #BC60D1

Accessibility & contrast

On white

8.25
#7B298D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7B298D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B298D
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B298D#FFFFFF#000000##FFFFFF
##7B298D1.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#31518B
Tritanopia (blue-blind)
#7B3B58
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b298d;
/* rgb */ color: rgb(123, 41, 141);
/* oklch */ color: oklch(44.8% 0.169 319.8);
Tailwind
colors: {
  custom: {
    50: '#a46aaf',
    500: '#7b298d',
    950: '#000000',
  },
}
SCSS
$custom: #7b298d;
$custom-light: #a46aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b298d",
  "rgb": {
    "r": 123,
    "g": 41,
    "b": 141
  },
  "hsl": {
    "h": 289.2,
    "s": 54.945,
    "l": 35.686
  },
  "oklch": {
    "l": 0.4475,
    "c": 0.16864,
    "h": 319.8
  },
  "luminance": 0.0772
}

Semantic roles & 50–950 ramp

primary
#7B298D
secondary
#6CB65B
accent
#DE4A64
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B298D

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

Preview Lab → · Contrast checker → · Palette generator →

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