#7F288E#7F288E

#7F288E is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.3% C 0.173 H 321.4°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#7F288E
RGBrgb(127, 40, 142)
HSLhsl(291, 56%, 36%)
HSVhsv(291, 72%, 56%)
CMYKcmyk(10.6%, 71.8%, 0%, 44.3%)
CIE-LABlab(33.95, 51.21, -38.55)
CIE-LCHlch(33.95, 64.10, 323.03°)
OKLaboklab(45.29% 0.1349 -0.1077)
OKLCHoklch(45.29% 0.173 321.4)
XYZxyz(14.3931, 7.9834, 26.3688)
Luminance0.0798 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F288E #378E28
analogous
#4C288E #7F288E #8E286A
triadic
#7F288E #8E7F28 #288E7F
tetradic
#7F288E #8E4C28 #378E28 #286A8E
square
#7F288E #8E4C28 #378E28 #286A8E
split-complementary
#7F288E #6A8E28 #288E4C
monochromatic
#2A0D2F #541B5E #7F288E #AA35BE #C15FD2

Accessibility & contrast

On white

8.09
#7F288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7F288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F288E
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F288E#FFFFFF#000000##FFFFFF
##7F288E1.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A91
Deuteranopia (green-blind)
#34538C
Tritanopia (blue-blind)
#803B58
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f288e;
/* rgb */ color: rgb(127, 40, 142);
/* oklch */ color: oklch(45.3% 0.173 321.4);
Tailwind
colors: {
  custom: {
    50: '#a76aaf',
    500: '#7f288e',
    950: '#000000',
  },
}
SCSS
$custom: #7f288e;
$custom-light: #a76aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f288e",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 291.176,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45294,
    "c": 0.17263,
    "h": 321.4
  },
  "luminance": 0.07983
}

Semantic roles & 50–950 ramp

primary
#7F288E
secondary
#68B75B
accent
#DF485F
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F288E

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

Preview Lab → · Contrast checker → · Palette generator →

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