#7F338D#7F338D

#7F338D is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.5% C 0.157 H 321.1°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#7F338D
RGBrgb(127, 51, 141)
HSLhsl(291, 47%, 38%)
HSVhsv(291, 64%, 55%)
CMYKcmyk(9.9%, 63.8%, 0%, 44.7%)
CIE-LABlab(35.60, 46.22, -35.29)
CIE-LCHlch(35.60, 58.16, 322.64°)
OKLaboklab(46.47% 0.122 -0.0983)
OKLCHoklch(46.47% 0.157 321.1)
XYZxyz(14.7434, 8.8035, 26.1168)
Luminance0.0880 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F338D #418D33
analogous
#52338D #7F338D #8D336E
triadic
#7F338D #8D7F33 #338D7F
tetradic
#7F338D #8D5233 #418D33 #336E8D
square
#7F338D #8D5233 #418D33 #336E8D
split-complementary
#7F338D #6E8D33 #338D52
monochromatic
#2E1233 #572360 #7F338D #A743BA #BD6FCB

Accessibility & contrast

On white

7.61
#7F338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7F338D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F338D
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F338D#FFFFFF#000000##FFFFFF
##7F338D1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4E90
Deuteranopia (green-blind)
#3C578B
Tritanopia (blue-blind)
#80415B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f338d;
/* rgb */ color: rgb(127, 51, 141);
/* oklch */ color: oklch(46.5% 0.157 321.1);
Tailwind
colors: {
  custom: {
    50: '#a770af',
    500: '#7f338d',
    950: '#000000',
  },
}
SCSS
$custom: #7f338d;
$custom-light: #a770af;
$custom-dark: #000000;
JSON
{
  "hex": "#7f338d",
  "rgb": {
    "r": 127,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 290.667,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.46466,
    "c": 0.15669,
    "h": 321.1
  },
  "luminance": 0.08803
}

Semantic roles & 50–950 ramp

primary
#7F338D
secondary
#74B369
accent
#D75166
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7F338D

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

Preview Lab → · Contrast checker → · Palette generator →

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