#7F3299#7F3299

#7F3299 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.1% C 0.170 H 316.4°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#7F3299
RGBrgb(127, 50, 153)
HSLhsl(285, 51%, 40%)
HSVhsv(285, 67%, 60%)
CMYKcmyk(17%, 67.3%, 0%, 40%)
CIE-LABlab(36.16, 49.16, -41.72)
CIE-LCHlch(36.16, 64.48, 319.68°)
OKLaboklab(47.11% 0.1231 -0.1171)
OKLCHoklch(47.11% 0.17 316.4)
XYZxyz(15.6419, 9.0937, 31.0621)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3299 #4C9932
analogous
#4B3299 #7F3299 #993280
triadic
#7F3299 #997F32 #32997F
tetradic
#7F3299 #994B32 #4C9932 #328099
square
#7F3299 #994B32 #4C9932 #328099
split-complementary
#7F3299 #809932 #32994B
monochromatic
#32143D #59236B #7F3299 #A346C2 #BA74D2

Accessibility & contrast

On white

7.45
#7F3299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7F3299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F3299
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3299#FFFFFF#000000##FFFFFF
##7F32991.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02509C
Deuteranopia (green-blind)
#335797
Tritanopia (blue-blind)
#7E4561
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f3299;
/* rgb */ color: rgb(127, 50, 153);
/* oklch */ color: oklch(47.1% 0.170 316.4);
Tailwind
colors: {
  custom: {
    50: '#a770b8',
    500: '#7f3299',
    950: '#000000',
  },
}
SCSS
$custom: #7f3299;
$custom-light: #a770b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3299",
  "rgb": {
    "r": 127,
    "g": 50,
    "b": 153
  },
  "hsl": {
    "h": 284.854,
    "s": 50.739,
    "l": 39.804
  },
  "oklch": {
    "l": 0.47106,
    "c": 0.16991,
    "h": 316.4
  },
  "luminance": 0.09093
}

Semantic roles & 50–950 ramp

primary
#7F3299
secondary
#80BA6D
accent
#DA4E71
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7F3299

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

Preview Lab → · Contrast checker → · Palette generator →

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