#7D338F#7D338F

#7D338F is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.3% C 0.158 H 319.3°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#7D338F
RGBrgb(125, 51, 143)
HSLhsl(288, 47%, 38%)
HSVhsv(288, 64%, 56%)
CMYKcmyk(12.6%, 64.3%, 0%, 43.9%)
CIE-LABlab(35.42, 46.12, -36.83)
CIE-LCHlch(35.42, 59.02, 321.39°)
OKLaboklab(46.31% 0.1195 -0.1029)
OKLCHoklch(46.31% 0.158 319.3)
XYZxyz(14.5986, 8.7114, 26.8938)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D338F #458F33
analogous
#4F338F #7D338F #8F3373
triadic
#7D338F #8F7D33 #338F7D
tetradic
#7D338F #8F4F33 #458F33 #33738F
square
#7D338F #8F4F33 #458F33 #33738F
split-complementary
#7D338F #738F33 #338F4F
monochromatic
#2E1335 #562362 #7D338F #A443BC #BA70CC

Accessibility & contrast

On white

7.66
#7D338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7D338F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D338F
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D338F#FFFFFF#000000##FFFFFF
##7D338F1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194E92
Deuteranopia (green-blind)
#39568D
Tritanopia (blue-blind)
#7D425C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7d338f;
/* rgb */ color: rgb(125, 51, 143);
/* oklch */ color: oklch(46.3% 0.158 319.3);
Tailwind
colors: {
  custom: {
    50: '#a570b0',
    500: '#7d338f',
    950: '#000000',
  },
}
SCSS
$custom: #7d338f;
$custom-light: #a570b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d338f",
  "rgb": {
    "r": 125,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 288.261,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.46312,
    "c": 0.15768,
    "h": 319.3
  },
  "luminance": 0.08711
}

Semantic roles & 50–950 ramp

primary
#7D338F
secondary
#78B46A
accent
#D7516B
background
#FAF7FA
surface
#F4EDF5
border
#CEC8CF
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7D338F

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

Preview Lab → · Contrast checker → · Palette generator →

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