#7F2897#7F2897

#7F2897 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.9% C 0.181 H 317.9°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#7F2897
RGBrgb(127, 40, 151)
HSLhsl(287, 58%, 37%)
HSVhsv(287, 74%, 59%)
CMYKcmyk(15.9%, 73.5%, 0%, 40.8%)
CIE-LABlab(34.53, 52.99, -43.13)
CIE-LCHlch(34.53, 68.32, 320.86°)
OKLaboklab(45.89% 0.1342 -0.1211)
OKLCHoklch(45.89% 0.181 317.9)
XYZxyz(15.0963, 8.2646, 30.0722)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2897 #409728
analogous
#482897 #7F2897 #972878
triadic
#7F2897 #977F28 #28977F
tetradic
#7F2897 #974828 #409728 #287897
square
#7F2897 #974828 #409728 #287897
split-complementary
#7F2897 #789728 #289748
monochromatic
#2E0E36 #561B67 #7F2897 #A835C7 #BD64D6

Accessibility & contrast

On white

7.92
#7F2897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7F2897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2897
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2897#FFFFFF#000000##FFFFFF
##7F28971.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#2C5494
Tritanopia (blue-blind)
#7E3E5D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f2897;
/* rgb */ color: rgb(127, 40, 151);
/* oklch */ color: oklch(45.9% 0.181 317.9);
Tailwind
colors: {
  custom: {
    50: '#a86bb6',
    500: '#7f2897',
    950: '#000000',
  },
}
SCSS
$custom: #7f2897;
$custom-light: #a86bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2897",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 287.027,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45893,
    "c": 0.18083,
    "h": 317.9
  },
  "luminance": 0.08264
}

Semantic roles & 50–950 ramp

primary
#7F2897
secondary
#73BC5F
accent
#E14668
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2897

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

Preview Lab → · Contrast checker → · Palette generator →

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