#7D2897#7D2897

#7D2897 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.6% C 0.180 H 317.0°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#7D2897
RGBrgb(125, 40, 151)
HSLhsl(286, 58%, 37%)
HSVhsv(286, 74%, 59%)
CMYKcmyk(17.2%, 73.5%, 0%, 40.8%)
CIE-LABlab(34.22, 52.55, -43.65)
CIE-LCHlch(34.22, 68.32, 320.29°)
OKLaboklab(45.61% 0.1317 -0.1227)
OKLCHoklch(45.61% 0.18 317)
XYZxyz(14.8013, 8.1125, 30.0584)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2897 #429728
analogous
#462897 #7D2897 #972879
triadic
#7D2897 #977D28 #28977D
tetradic
#7D2897 #974628 #429728 #287997
square
#7D2897 #974628 #429728 #287997
split-complementary
#7D2897 #799728 #289746
monochromatic
#2D0E36 #551B67 #7D2897 #A535C7 #BB64D6

Accessibility & contrast

On white

8.01
#7D2897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7D2897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2897
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2897#FFFFFF#000000##FFFFFF
##7D28971.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#2A5394
Tritanopia (blue-blind)
#7C3F5D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7d2897;
/* rgb */ color: rgb(125, 40, 151);
/* oklch */ color: oklch(45.6% 0.180 317.0);
Tailwind
colors: {
  custom: {
    50: '#a66ab6',
    500: '#7d2897',
    950: '#000000',
  },
}
SCSS
$custom: #7d2897;
$custom-light: #a66ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2897",
  "rgb": {
    "r": 125,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 285.946,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45608,
    "c": 0.18002,
    "h": 317
  },
  "luminance": 0.08112
}

Semantic roles & 50–950 ramp

primary
#7D2897
secondary
#75BC5F
accent
#E1466B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2897

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

Preview Lab → · Contrast checker → · Palette generator →

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