#7D338B#7D338B

#7D338B is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.1% C 0.154 H 321.0°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#7D338B
RGBrgb(125, 51, 139)
HSLhsl(290, 46%, 37%)
HSVhsv(290, 63%, 55%)
CMYKcmyk(10.1%, 63.3%, 0%, 45.5%)
CIE-LABlab(35.19, 45.30, -34.74)
CIE-LCHlch(35.19, 57.09, 322.51°)
OKLaboklab(46.07% 0.1194 -0.0968)
OKLCHoklch(46.07% 0.154 321)
XYZxyz(14.3009, 8.5924, 25.3263)
Luminance0.0859 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D338B #418B33
analogous
#51338B #7D338B #8B336D
triadic
#7D338B #8B7D33 #338B7D
tetradic
#7D338B #8B5133 #418B33 #336D8B
square
#7D338B #8B5133 #418B33 #336D8B
split-complementary
#7D338B #6D8B33 #338B51
monochromatic
#2C1231 #55235E #7D338B #A543B8 #BB6ECA

Accessibility & contrast

On white

7.73
#7D338B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7D338B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D338B
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D338B#FFFFFF#000000##FFFFFF
##7D338B1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4D8E
Deuteranopia (green-blind)
#3C5589
Tritanopia (blue-blind)
#7E415A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7d338b;
/* rgb */ color: rgb(125, 51, 139);
/* oklch */ color: oklch(46.1% 0.154 321.0);
Tailwind
colors: {
  custom: {
    50: '#a570ad',
    500: '#7d338b',
    950: '#000000',
  },
}
SCSS
$custom: #7d338b;
$custom-light: #a570ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7d338b",
  "rgb": {
    "r": 125,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 290.455,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.46066,
    "c": 0.15373,
    "h": 321
  },
  "luminance": 0.08592
}

Semantic roles & 50–950 ramp

primary
#7D338B
secondary
#74B268
accent
#D65267
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7D338B

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

Preview Lab → · Contrast checker → · Palette generator →

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