#7F2985#7F2985

#7F2985 is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.8% C 0.163 H 325.1°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#7F2985
RGBrgb(127, 41, 133)
HSLhsl(296, 53%, 34%)
HSVhsv(296, 69%, 52%)
CMYKcmyk(4.5%, 69.2%, 0%, 47.8%)
CIE-LABlab(33.55, 49.10, -33.62)
CIE-LCHlch(33.55, 59.51, 325.59°)
OKLaboklab(44.83% 0.1339 -0.0934)
OKLCHoklch(44.83% 0.163 325.1)
XYZxyz(13.7787, 7.7922, 22.9641)
Luminance0.0779 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2985 #2F8529
analogous
#512985 #7F2985 #85295D
triadic
#7F2985 #857F29 #29857F
tetradic
#7F2985 #855129 #2F8529 #295D85
square
#7F2985 #855129 #2F8529 #295D85
split-complementary
#7F2985 #5D8529 #298551
monochromatic
#260C27 #521B56 #7F2985 #AC37B4 #C55CCD

Accessibility & contrast

On white

8.21
#7F2985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7F2985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2985
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2985#FFFFFF#000000##FFFFFF
##7F29851.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154888
Deuteranopia (green-blind)
#3B5383
Tritanopia (blue-blind)
#823754
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f2985;
/* rgb */ color: rgb(127, 41, 133);
/* oklch */ color: oklch(44.8% 0.163 325.1);
Tailwind
colors: {
  custom: {
    50: '#a76aa9',
    500: '#7f2985',
    950: '#000000',
  },
}
SCSS
$custom: #7f2985;
$custom-light: #a76aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2985",
  "rgb": {
    "r": 127,
    "g": 41,
    "b": 133
  },
  "hsl": {
    "h": 296.087,
    "s": 52.874,
    "l": 34.118
  },
  "oklch": {
    "l": 0.4483,
    "c": 0.16329,
    "h": 325.1
  },
  "luminance": 0.07791
}

Semantic roles & 50–950 ramp

primary
#7F2985
secondary
#5EB258
accent
#DC4C55
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2985

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

Preview Lab → · Contrast checker → · Palette generator →

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