#7D3281#7D3281

#7D3281 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.3% C 0.146 H 325.6°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#7D3281
RGBrgb(125, 50, 129)
HSLhsl(297, 44%, 35%)
HSVhsv(297, 61%, 51%)
CMYKcmyk(3.1%, 61.2%, 0%, 49.4%)
CIE-LABlab(34.45, 43.80, -29.73)
CIE-LCHlch(34.45, 52.94, 325.84°)
OKLaboklab(45.35% 0.1202 -0.0822)
OKLCHoklch(45.35% 0.146 325.6)
XYZxyz(13.5602, 8.2270, 21.6383)
Luminance0.0823 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D3281 #368132
analogous
#553281 #7D3281 #81325D
triadic
#7D3281 #817D32 #32817D
tetradic
#7D3281 #815532 #368132 #325D81
square
#7D3281 #815532 #368132 #325D81
split-complementary
#7D3281 #5D8132 #328155
monochromatic
#281029 #522155 #7D3281 #A843AD #C069C5

Accessibility & contrast

On white

7.94
#7D3281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7D3281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D3281
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D3281#FFFFFF#000000##FFFFFF
##7D32811.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264B83
Deuteranopia (green-blind)
#41547F
Tritanopia (blue-blind)
#803D54
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d3281;
/* rgb */ color: rgb(125, 50, 129);
/* oklch */ color: oklch(45.3% 0.146 325.6);
Tailwind
colors: {
  custom: {
    50: '#a56fa6',
    500: '#7d3281',
    950: '#000000',
  },
}
SCSS
$custom: #7d3281;
$custom-light: #a56fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d3281",
  "rgb": {
    "r": 125,
    "g": 50,
    "b": 129
  },
  "hsl": {
    "h": 296.962,
    "s": 44.134,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45348,
    "c": 0.14561,
    "h": 325.6
  },
  "luminance": 0.08226
}

Semantic roles & 50–950 ramp

primary
#7D3281
secondary
#66AC62
accent
#D4545A
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10080F
muted
#7F7B7F

Preview Lab

Preview with #7D3281

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

Preview Lab → · Contrast checker → · Palette generator →

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