#7D2998#7D2998

#7D2998 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.8% C 0.180 H 316.6°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#7D2998
RGBrgb(125, 41, 152)
HSLhsl(285, 58%, 38%)
HSVhsv(285, 73%, 60%)
CMYKcmyk(17.8%, 73%, 0%, 40.4%)
CIE-LABlab(34.42, 52.36, -43.92)
CIE-LCHlch(34.42, 68.34, 320.01°)
OKLaboklab(45.78% 0.1306 -0.1235)
OKLCHoklch(45.78% 0.18 316.6)
XYZxyz(14.9170, 8.2135, 30.4993)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2998 #449829
analogous
#452998 #7D2998 #98297C
triadic
#7D2998 #987D29 #29987D
tetradic
#7D2998 #984529 #449829 #297C98
square
#7D2998 #984529 #449829 #297C98
split-complementary
#7D2998 #7C9829 #299845
monochromatic
#2E0F38 #551C68 #7D2998 #A536C8 #BA66D6

Accessibility & contrast

On white

7.95
#7D2998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7D2998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2998
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2998#FFFFFF#000000##FFFFFF
##7D29981.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#2A5395
Tritanopia (blue-blind)
#7B405E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d2998;
/* rgb */ color: rgb(125, 41, 152);
/* oklch */ color: oklch(45.8% 0.180 316.6);
Tailwind
colors: {
  custom: {
    50: '#a66bb7',
    500: '#7d2998',
    950: '#000000',
  },
}
SCSS
$custom: #7d2998;
$custom-light: #a66bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2998",
  "rgb": {
    "r": 125,
    "g": 41,
    "b": 152
  },
  "hsl": {
    "h": 285.405,
    "s": 57.513,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45777,
    "c": 0.17977,
    "h": 316.6
  },
  "luminance": 0.08213
}

Semantic roles & 50–950 ramp

primary
#7D2998
secondary
#77BC61
accent
#E1476C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2998

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

Preview Lab → · Contrast checker → · Palette generator →

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