#7F278E#7F278E

#7F278E is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.2% C 0.174 H 321.4°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#7F278E
RGBrgb(127, 39, 142)
HSLhsl(291, 57%, 35%)
HSVhsv(291, 73%, 56%)
CMYKcmyk(10.6%, 72.5%, 0%, 44.3%)
CIE-LABlab(33.81, 51.61, -38.77)
CIE-LCHlch(33.81, 64.55, 323.09°)
OKLaboklab(45.19% 0.1359 -0.1084)
OKLCHoklch(45.19% 0.174 321.4)
XYZxyz(14.3599, 7.9168, 26.3577)
Luminance0.0792 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F278E #368E27
analogous
#4B278E #7F278E #8E2769
triadic
#7F278E #8E7F27 #278E7F
tetradic
#7F278E #8E4B27 #368E27 #27698E
square
#7F278E #8E4B27 #368E27 #27698E
split-complementary
#7F278E #698E27 #278E4B
monochromatic
#290D2E #541A5E #7F278E #AA34BE #C15DD2

Accessibility & contrast

On white

8.13
#7F278E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7F278E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F278E
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F278E#FFFFFF#000000##FFFFFF
##7F278E1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#34538C
Tritanopia (blue-blind)
#803A58
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f278e;
/* rgb */ color: rgb(127, 39, 142);
/* oklch */ color: oklch(45.2% 0.174 321.4);
Tailwind
colors: {
  custom: {
    50: '#a76aaf',
    500: '#7f278e',
    950: '#000000',
  },
}
SCSS
$custom: #7f278e;
$custom-light: #a76aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f278e",
  "rgb": {
    "r": 127,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 291.262,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45194,
    "c": 0.17386,
    "h": 321.4
  },
  "luminance": 0.07916
}

Semantic roles & 50–950 ramp

primary
#7F278E
secondary
#67B859
accent
#E0485E
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F278E

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

Preview Lab → · Contrast checker → · Palette generator →

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