#7F338E#7F338E

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

Color values

HEX#7F338E
RGBrgb(127, 51, 142)
HSLhsl(290, 47%, 38%)
HSVhsv(290, 64%, 56%)
CMYKcmyk(10.6%, 64.1%, 0%, 44.3%)
CIE-LABlab(35.66, 46.43, -35.81)
CIE-LCHlch(35.66, 58.63, 322.35°)
OKLaboklab(46.53% 0.122 -0.0998)
OKLCHoklch(46.53% 0.158 320.7)
XYZxyz(14.8181, 8.8334, 26.5104)
Luminance0.0883 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F338E #428E33
analogous
#51338E #7F338E #8E336F
triadic
#7F338E #8E7F33 #338E7F
tetradic
#7F338E #8E5133 #428E33 #336F8E
square
#7F338E #8E5133 #428E33 #336F8E
split-complementary
#7F338E #6F8E33 #338E51
monochromatic
#2E1334 #572361 #7F338E #A743BB #BC70CC

Accessibility & contrast

On white

7.59
#7F338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7F338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F338E
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F338E#FFFFFF#000000##FFFFFF
##7F338E1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4E91
Deuteranopia (green-blind)
#3C578C
Tritanopia (blue-blind)
#80425C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f338e;
/* rgb */ color: rgb(127, 51, 142);
/* oklch */ color: oklch(46.5% 0.158 320.7);
Tailwind
colors: {
  custom: {
    50: '#a770af',
    500: '#7f338e',
    950: '#000000',
  },
}
SCSS
$custom: #7f338e;
$custom-light: #a770af;
$custom-dark: #000000;
JSON
{
  "hex": "#7f338e",
  "rgb": {
    "r": 127,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 290.11,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.46527,
    "c": 0.15766,
    "h": 320.7
  },
  "luminance": 0.08833
}

Semantic roles & 50–950 ramp

primary
#7F338E
secondary
#75B469
accent
#D75167
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7F338E

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

Preview Lab → · Contrast checker → · Palette generator →

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