#7D2397#7D2397

#7D2397 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.1% C 0.186 H 317.3°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#7D2397
RGBrgb(125, 35, 151)
HSLhsl(287, 62%, 36%)
HSVhsv(287, 77%, 59%)
CMYKcmyk(17.2%, 76.8%, 0%, 40.8%)
CIE-LABlab(33.56, 54.44, -44.71)
CIE-LCHlch(33.56, 70.44, 320.61°)
OKLaboklab(45.14% 0.1366 -0.1258)
OKLCHoklch(45.14% 0.186 317.3)
XYZxyz(14.6436, 7.7970, 30.0058)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2397 #3D9723
analogous
#432397 #7D2397 #972377
triadic
#7D2397 #977D23 #23977D
tetradic
#7D2397 #974323 #3D9723 #237797
square
#7D2397 #974323 #3D9723 #237797
split-complementary
#7D2397 #779723 #239743
monochromatic
#2B0C34 #541765 #7D2397 #A62FC9 #BD5BD9

Accessibility & contrast

On white

8.21
#7D2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7D2397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2397
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2397#FFFFFF#000000##FFFFFF
##7D23971.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#265294
Tritanopia (blue-blind)
#7C3C5C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d2397;
/* rgb */ color: rgb(125, 35, 151);
/* oklch */ color: oklch(45.1% 0.186 317.3);
Tailwind
colors: {
  custom: {
    50: '#a668b6',
    500: '#7d2397',
    950: '#000000',
  },
}
SCSS
$custom: #7d2397;
$custom-light: #a668b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2397",
  "rgb": {
    "r": 125,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 286.552,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.4514,
    "c": 0.18568,
    "h": 317.3
  },
  "luminance": 0.07796
}

Semantic roles & 50–950 ramp

primary
#7D2397
secondary
#6FBE58
accent
#E54267
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2397

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

Preview Lab → · Contrast checker → · Palette generator →

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