#7F278B#7F278B

#7F278B is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.171 H 322.7°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#7F278B
RGBrgb(127, 39, 139)
HSLhsl(293, 56%, 35%)
HSVhsv(293, 72%, 55%)
CMYKcmyk(8.6%, 71.9%, 0%, 45.5%)
CIE-LABlab(33.62, 51.03, -37.22)
CIE-LCHlch(33.62, 63.16, 323.90°)
OKLaboklab(45% 0.1361 -0.1038)
OKLCHoklch(45% 0.171 322.7)
XYZxyz(14.1377, 7.8279, 25.1874)
Luminance0.0783 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F278B #338B27
analogous
#4D278B #7F278B #8B2765
triadic
#7F278B #8B7F27 #278B7F
tetradic
#7F278B #8B4D27 #338B27 #27658B
square
#7F278B #8B4D27 #338B27 #27658B
split-complementary
#7F278B #658B27 #278B4D
monochromatic
#280C2B #531A5B #7F278B #AB34BB #C35BD1

Accessibility & contrast

On white

8.19
#7F278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7F278B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F278B
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F278B#FFFFFF#000000##FFFFFF
##7F278B1.008.192.578.19
#FFFFFF8.191.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03498E
Deuteranopia (green-blind)
#365289
Tritanopia (blue-blind)
#813956
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f278b;
/* rgb */ color: rgb(127, 39, 139);
/* oklch */ color: oklch(45.0% 0.171 322.7);
Tailwind
colors: {
  custom: {
    50: '#a76aad',
    500: '#7f278b',
    950: '#000000',
  },
}
SCSS
$custom: #7f278b;
$custom-light: #a76aad;
$custom-dark: #000000;
JSON
{
  "hex": "#7f278b",
  "rgb": {
    "r": 127,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 292.8,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45001,
    "c": 0.17118,
    "h": 322.7
  },
  "luminance": 0.07827
}

Semantic roles & 50–950 ramp

primary
#7F278B
secondary
#63B658
accent
#DF485A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F278B

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

Preview Lab → · Contrast checker → · Palette generator →

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