#7D2895#7D2895

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

Color values

HEX#7D2895
RGBrgb(125, 40, 149)
HSLhsl(287, 58%, 37%)
HSVhsv(287, 73%, 58%)
CMYKcmyk(16.1%, 73.2%, 0%, 41.6%)
CIE-LABlab(34.08, 52.15, -42.64)
CIE-LCHlch(34.08, 67.36, 320.73°)
OKLaboklab(45.47% 0.1319 -0.1198)
OKLCHoklch(45.47% 0.178 317.8)
XYZxyz(14.6403, 8.0481, 29.2102)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2895 #409528
analogous
#472895 #7D2895 #952877
triadic
#7D2895 #957D28 #28957D
tetradic
#7D2895 #954728 #409528 #287795
square
#7D2895 #954728 #409528 #287795
split-complementary
#7D2895 #779528 #289547
monochromatic
#2C0E35 #551B65 #7D2895 #A535C5 #BC62D5

Accessibility & contrast

On white

8.05
#7D2895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7D2895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2895
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2895#FFFFFF#000000##FFFFFF
##7D28951.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B98
Deuteranopia (green-blind)
#2C5393
Tritanopia (blue-blind)
#7C3E5C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7d2895;
/* rgb */ color: rgb(125, 40, 149);
/* oklch */ color: oklch(45.5% 0.178 317.8);
Tailwind
colors: {
  custom: {
    50: '#a66ab5',
    500: '#7d2895',
    950: '#000000',
  },
}
SCSS
$custom: #7d2895;
$custom-light: #a66ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2895",
  "rgb": {
    "r": 125,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 286.789,
    "s": 57.672,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45471,
    "c": 0.17817,
    "h": 317.8
  },
  "luminance": 0.08047
}

Semantic roles & 50–950 ramp

primary
#7D2895
secondary
#73BB5E
accent
#E14769
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2895

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

Preview Lab → · Contrast checker → · Palette generator →

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