#7F287E#7F287E

#7F287E is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.3% C 0.159 H 328.3°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#7F287E
RGBrgb(127, 40, 126)
HSLhsl(301, 52%, 33%)
HSVhsv(301, 69%, 50%)
CMYKcmyk(0%, 68.5%, 0.8%, 50.2%)
CIE-LABlab(33.00, 48.23, -30.13)
CIE-LCHlch(33.00, 56.87, 328.01°)
OKLaboklab(44.31% 0.1349 -0.0832)
OKLCHoklch(44.31% 0.159 328.3)
XYZxyz(13.2769, 7.5369, 20.4901)
Luminance0.0754 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F287E #287F29
analogous
#55287F #7F287E #7F2852
triadic
#7F287E #7E7F28 #287E7F
tetradic
#7F287E #7F5528 #287F29 #28527F
square
#7F287E #7F5528 #287F29 #28527F
split-complementary
#7F287E #527F28 #287F55
monochromatic
#220B22 #501950 #7F287E #AE37AC #CA57C9

Accessibility & contrast

On white

8.38
#7F287E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F287E
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F287E#FFFFFF#000000##FFFFFF
##7F287E1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4680
Deuteranopia (green-blind)
#3E527C
Tritanopia (blue-blind)
#83344F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f287e;
/* rgb */ color: rgb(127, 40, 126);
/* oklch */ color: oklch(44.3% 0.159 328.3);
Tailwind
colors: {
  custom: {
    50: '#a76aa4',
    500: '#7f287e',
    950: '#000000',
  },
}
SCSS
$custom: #7f287e;
$custom-light: #a76aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f287e",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 126
  },
  "hsl": {
    "h": 300.69,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.44306,
    "c": 0.15852,
    "h": 328.3
  },
  "luminance": 0.07536
}

Semantic roles & 50–950 ramp

primary
#7F287E
secondary
#54AF55
accent
#DC4E4C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7F287E

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

Preview Lab → · Contrast checker → · Palette generator →

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