#7D2498#7D2498

#7D2498 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.3% C 0.185 H 316.9°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#7D2498
RGBrgb(125, 36, 152)
HSLhsl(286, 62%, 37%)
HSVhsv(286, 76%, 60%)
CMYKcmyk(17.8%, 76.3%, 0%, 40.4%)
CIE-LABlab(33.75, 54.28, -45.00)
CIE-LCHlch(33.75, 70.51, 320.34°)
OKLaboklab(45.3% 0.1355 -0.1267)
OKLCHoklch(45.3% 0.186 316.9)
XYZxyz(14.7550, 7.8894, 30.4453)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2498 #3F9824
analogous
#432498 #7D2498 #982479
triadic
#7D2498 #987D24 #24987D
tetradic
#7D2498 #984324 #3F9824 #247998
square
#7D2498 #984324 #3F9824 #247998
split-complementary
#7D2498 #799824 #249843
monochromatic
#2C0D35 #541867 #7D2498 #A630C9 #BC5ED9

Accessibility & contrast

On white

8.15
#7D2498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7D2498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2498
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2498#FFFFFF#000000##FFFFFF
##7D24981.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9B
Deuteranopia (green-blind)
#255295
Tritanopia (blue-blind)
#7C3D5D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d2498;
/* rgb */ color: rgb(125, 36, 152);
/* oklch */ color: oklch(45.3% 0.185 316.9);
Tailwind
colors: {
  custom: {
    50: '#a669b7',
    500: '#7d2498',
    950: '#000000',
  },
}
SCSS
$custom: #7d2498;
$custom-light: #a669b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2498",
  "rgb": {
    "r": 125,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 286.034,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.453,
    "c": 0.1855,
    "h": 316.9
  },
  "luminance": 0.07889
}

Semantic roles & 50–950 ramp

primary
#7D2498
secondary
#71BE5A
accent
#E54369
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2498

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

Preview Lab → · Contrast checker → · Palette generator →

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