#7D337E#7D337E

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

Color values

HEX#7D337E
RGBrgb(125, 51, 126)
HSLhsl(299, 42%, 35%)
HSVhsv(299, 60%, 49%)
CMYKcmyk(0.8%, 59.5%, 0%, 50.6%)
CIE-LABlab(34.47, 42.74, -27.84)
CIE-LCHlch(34.47, 51.01, 326.93°)
OKLaboklab(45.31% 0.1185 -0.0768)
OKLCHoklch(45.31% 0.141 327.1)
XYZxyz(13.4069, 8.2348, 20.6179)
Luminance0.0823 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D337E #347E33
analogous
#58337E #7D337E #7E335A
triadic
#7D337E #7E7D33 #337E7D
tetradic
#7D337E #7E5833 #347E33 #335A7E
square
#7D337E #7E5833 #347E33 #335A7E
split-complementary
#7D337E #5A7E33 #337E58
monochromatic
#271027 #522152 #7D337E #A845AA #C169C2

Accessibility & contrast

On white

7.93
#7D337E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D337E
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D337E#FFFFFF#000000##FFFFFF
##7D337E1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4B80
Deuteranopia (green-blind)
#43547C
Tritanopia (blue-blind)
#803C53
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d337e;
/* rgb */ color: rgb(125, 51, 126);
/* oklch */ color: oklch(45.3% 0.141 327.1);
Tailwind
colors: {
  custom: {
    50: '#a56fa3',
    500: '#7d337e',
    950: '#000000',
  },
}
SCSS
$custom: #7d337e;
$custom-light: #a56fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d337e",
  "rgb": {
    "r": 125,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 299.2,
    "s": 42.373,
    "l": 34.706
  },
  "oklch": {
    "l": 0.45308,
    "c": 0.14122,
    "h": 327.1
  },
  "luminance": 0.08234
}

Semantic roles & 50–950 ramp

primary
#7D337E
secondary
#64AA63
accent
#D25657
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10080F
muted
#7F7B7F

Preview Lab

Preview with #7D337E

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

Preview Lab → · Contrast checker → · Palette generator →

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