#7F288F#7F288F

#7F288F is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.4% C 0.174 H 321.0°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#7F288F
RGBrgb(127, 40, 143)
HSLhsl(291, 56%, 36%)
HSVhsv(291, 72%, 56%)
CMYKcmyk(11.2%, 72%, 0%, 43.9%)
CIE-LABlab(34.01, 51.41, -39.06)
CIE-LCHlch(34.01, 64.56, 322.77°)
OKLaboklab(45.36% 0.1348 -0.1092)
OKLCHoklch(45.36% 0.174 321)
XYZxyz(14.4685, 8.0135, 26.7659)
Luminance0.0801 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F288F #388F28
analogous
#4B288F #7F288F #8F286B
triadic
#7F288F #8F7F28 #288F7F
tetradic
#7F288F #8F4B28 #388F28 #286B8F
square
#7F288F #8F4B28 #388F28 #286B8F
split-complementary
#7F288F #6B8F28 #288F4B
monochromatic
#2A0D2F #551B5F #7F288F #A935BF #C05FD2

Accessibility & contrast

On white

8.07
#7F288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F288F
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F288F#FFFFFF#000000##FFFFFF
##7F288F1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#33538D
Tritanopia (blue-blind)
#803B59
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f288f;
/* rgb */ color: rgb(127, 40, 143);
/* oklch */ color: oklch(45.4% 0.174 321.0);
Tailwind
colors: {
  custom: {
    50: '#a76ab0',
    500: '#7f288f',
    950: '#000000',
  },
}
SCSS
$custom: #7f288f;
$custom-light: #a76ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f288f",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 290.68,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45359,
    "c": 0.17353,
    "h": 321
  },
  "luminance": 0.08013
}

Semantic roles & 50–950 ramp

primary
#7F288F
secondary
#69B85B
accent
#E04860
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F288F

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

Preview Lab → · Contrast checker → · Palette generator →

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