#7F338B#7F338B

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

Color values

HEX#7F338B
RGBrgb(127, 51, 139)
HSLhsl(292, 46%, 37%)
HSVhsv(292, 63%, 55%)
CMYKcmyk(8.6%, 63.3%, 0%, 45.5%)
CIE-LABlab(35.49, 45.82, -34.25)
CIE-LCHlch(35.49, 57.21, 323.22°)
OKLaboklab(46.35% 0.1219 -0.0953)
OKLCHoklch(46.35% 0.155 322)
XYZxyz(14.5959, 8.7445, 25.3401)
Luminance0.0874 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F338B #3F8B33
analogous
#53338B #7F338B #8B336B
triadic
#7F338B #8B7F33 #338B7F
tetradic
#7F338B #8B5333 #3F8B33 #336B8B
square
#7F338B #8B5333 #3F8B33 #336B8B
split-complementary
#7F338B #6B8B33 #338B53
monochromatic
#2D1231 #56235E #7F338B #A843B8 #BD6ECA

Accessibility & contrast

On white

7.64
#7F338B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7F338B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F338B
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F338B#FFFFFF#000000##FFFFFF
##7F338B1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204E8E
Deuteranopia (green-blind)
#3E5689
Tritanopia (blue-blind)
#81415A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f338b;
/* rgb */ color: rgb(127, 51, 139);
/* oklch */ color: oklch(46.3% 0.155 322.0);
Tailwind
colors: {
  custom: {
    50: '#a770ad',
    500: '#7f338b',
    950: '#000000',
  },
}
SCSS
$custom: #7f338b;
$custom-light: #a770ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7f338b",
  "rgb": {
    "r": 127,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 291.818,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.46345,
    "c": 0.15475,
    "h": 322
  },
  "luminance": 0.08744
}

Semantic roles & 50–950 ramp

primary
#7F338B
secondary
#72B268
accent
#D65264
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7F338B

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

Preview Lab → · Contrast checker → · Palette generator →

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