#7D2698#7D2698

#7D2698 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.5% C 0.183 H 316.8°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#7D2698
RGBrgb(125, 38, 152)
HSLhsl(286, 60%, 37%)
HSVhsv(286, 75%, 60%)
CMYKcmyk(17.8%, 75%, 0%, 40.4%)
CIE-LABlab(34.01, 53.53, -44.59)
CIE-LCHlch(34.01, 69.67, 320.21°)
OKLaboklab(45.49% 0.1336 -0.1255)
OKLCHoklch(45.49% 0.183 316.8)
XYZxyz(14.8172, 8.0138, 30.4660)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2698 #419826
analogous
#442698 #7D2698 #98267A
triadic
#7D2698 #987D26 #26987D
tetradic
#7D2698 #984426 #419826 #267A98
square
#7D2698 #984426 #419826 #267A98
split-complementary
#7D2698 #7A9826 #269844
monochromatic
#2C0E36 #551A67 #7D2698 #A532C9 #BB61D7

Accessibility & contrast

On white

8.07
#7D2698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7D2698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2698
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2698#FFFFFF#000000##FFFFFF
##7D26981.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#275295
Tritanopia (blue-blind)
#7C3E5D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7d2698;
/* rgb */ color: rgb(125, 38, 152);
/* oklch */ color: oklch(45.5% 0.183 316.8);
Tailwind
colors: {
  custom: {
    50: '#a66ab7',
    500: '#7d2698',
    950: '#000000',
  },
}
SCSS
$custom: #7d2698;
$custom-light: #a66ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2698",
  "rgb": {
    "r": 125,
    "g": 38,
    "b": 152
  },
  "hsl": {
    "h": 285.789,
    "s": 60,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45485,
    "c": 0.18327,
    "h": 316.8
  },
  "luminance": 0.08013
}

Semantic roles & 50–950 ramp

primary
#7D2698
secondary
#74BD5D
accent
#E3456A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2698

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

Preview Lab → · Contrast checker → · Palette generator →

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