#7F287F#7F287F

#7F287F is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.4% C 0.159 H 327.9°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#7F287F
RGBrgb(127, 40, 127)
HSLhsl(300, 52%, 33%)
HSVhsv(300, 69%, 50%)
CMYKcmyk(0%, 68.5%, 0%, 50.2%)
CIE-LABlab(33.06, 48.41, -30.67)
CIE-LCHlch(33.06, 57.30, 327.65°)
OKLaboklab(44.37% 0.1349 -0.0848)
OKLCHoklch(44.37% 0.159 327.9)
XYZxyz(13.3418, 7.5628, 20.8316)
Luminance0.0756 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F287F #287F28
analogous
#53287F #7F287F #7F2853
triadic
#7F287F #7F7F28 #287F7F
tetradic
#7F287F #7F5328 #287F28 #28537F
square
#7F287F #7F5328 #287F28 #28537F
split-complementary
#7F287F #537F28 #287F53
monochromatic
#220B22 #501950 #7F287F #AE37AE #CA57CA

Accessibility & contrast

On white

8.36
#7F287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7F287F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F287F
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F287F#FFFFFF#000000##FFFFFF
##7F287F1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4682
Deuteranopia (green-blind)
#3E527D
Tritanopia (blue-blind)
#833450
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f287f;
/* rgb */ color: rgb(127, 40, 127);
/* oklch */ color: oklch(44.4% 0.159 327.9);
Tailwind
colors: {
  custom: {
    50: '#a76aa4',
    500: '#7f287f',
    950: '#000000',
  },
}
SCSS
$custom: #7f287f;
$custom-light: #a76aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f287f",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 300,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.44365,
    "c": 0.15937,
    "h": 327.9
  },
  "luminance": 0.07562
}

Semantic roles & 50–950 ramp

primary
#7F287F
secondary
#54AF54
accent
#DC4C4C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7F287F

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

Preview Lab → · Contrast checker → · Palette generator →

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