#7D2597#7D2597

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

Color values

HEX#7D2597
RGBrgb(125, 37, 151)
HSLhsl(286, 61%, 37%)
HSVhsv(286, 75%, 59%)
CMYKcmyk(17.2%, 75.5%, 0%, 40.8%)
CIE-LABlab(33.81, 53.71, -44.30)
CIE-LCHlch(33.81, 69.62, 320.48°)
OKLaboklab(45.32% 0.1347 -0.1246)
OKLCHoklch(45.32% 0.183 317.2)
XYZxyz(14.7041, 7.9181, 30.0260)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2597 #3F9725
analogous
#442597 #7D2597 #972578
triadic
#7D2597 #977D25 #25977D
tetradic
#7D2597 #974425 #3F9725 #257897
square
#7D2597 #974425 #3F9725 #257897
split-complementary
#7D2597 #789725 #259744
monochromatic
#2C0D35 #541966 #7D2597 #A631C8 #BC5FD8

Accessibility & contrast

On white

8.13
#7D2597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D2597
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2597#FFFFFF#000000##FFFFFF
##7D25971.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#275294
Tritanopia (blue-blind)
#7C3D5C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d2597;
/* rgb */ color: rgb(125, 37, 151);
/* oklch */ color: oklch(45.3% 0.183 317.2);
Tailwind
colors: {
  custom: {
    50: '#a669b6',
    500: '#7d2597',
    950: '#000000',
  },
}
SCSS
$custom: #7d2597;
$custom-light: #a669b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2597",
  "rgb": {
    "r": 125,
    "g": 37,
    "b": 151
  },
  "hsl": {
    "h": 286.316,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45321,
    "c": 0.18348,
    "h": 317.2
  },
  "luminance": 0.07917
}

Semantic roles & 50–950 ramp

primary
#7D2597
secondary
#71BD5B
accent
#E44468
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2597

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

Preview Lab → · Contrast checker → · Palette generator →

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