#7B298E#7B298E

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

Color values

HEX#7B298E
RGBrgb(123, 41, 142)
HSLhsl(289, 55%, 36%)
HSVhsv(289, 71%, 56%)
CMYKcmyk(13.4%, 71.1%, 0%, 44.3%)
CIE-LABlab(33.46, 49.89, -39.37)
CIE-LCHlch(33.46, 63.55, 321.72°)
OKLaboklab(44.82% 0.1288 -0.1103)
OKLCHoklch(44.82% 0.17 319.4)
XYZxyz(13.8432, 7.7505, 26.3528)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B298E #3C8E29
analogous
#48298E #7B298E #8E296E
triadic
#7B298E #8E7B29 #298E7B
tetradic
#7B298E #8E4829 #3C8E29 #296E8E
square
#7B298E #8E4829 #3C8E29 #296E8E
split-complementary
#7B298E #6E8E29 #298E48
monochromatic
#290E2F #521B5F #7B298E #A437BD #BC60D1

Accessibility & contrast

On white

8.24
#7B298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7B298E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B298E
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B298E#FFFFFF#000000##FFFFFF
##7B298E1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#31518C
Tritanopia (blue-blind)
#7B3C58
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b298e;
/* rgb */ color: rgb(123, 41, 142);
/* oklch */ color: oklch(44.8% 0.170 319.4);
Tailwind
colors: {
  custom: {
    50: '#a46ab0',
    500: '#7b298e',
    950: '#000000',
  },
}
SCSS
$custom: #7b298e;
$custom-light: #a46ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b298e",
  "rgb": {
    "r": 123,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 288.713,
    "s": 55.191,
    "l": 35.882
  },
  "oklch": {
    "l": 0.44816,
    "c": 0.16958,
    "h": 319.4
  },
  "luminance": 0.0775
}

Semantic roles & 50–950 ramp

primary
#7B298E
secondary
#6DB75C
accent
#DF4965
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B298E

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

Preview Lab → · Contrast checker → · Palette generator →

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