#7F2599#7F2599

#7F2599 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.7% C 0.186 H 317.4°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#7F2599
RGBrgb(127, 37, 153)
HSLhsl(287, 61%, 37%)
HSVhsv(287, 76%, 60%)
CMYKcmyk(17%, 75.8%, 0%, 40%)
CIE-LABlab(34.26, 54.52, -44.77)
CIE-LCHlch(34.26, 70.55, 320.61°)
OKLaboklab(45.75% 0.137 -0.1259)
OKLCHoklch(45.75% 0.186 317.4)
XYZxyz(15.1629, 8.1357, 30.9025)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2599 #3F9925
analogous
#452599 #7F2599 #992579
triadic
#7F2599 #997F25 #25997F
tetradic
#7F2599 #994525 #3F9925 #257999
square
#7F2599 #994525 #3F9925 #257999
split-complementary
#7F2599 #799925 #259945
monochromatic
#2D0D36 #561968 #7F2599 #A831CA #BD60D9

Accessibility & contrast

On white

7.99
#7F2599 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7F2599 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2599
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2599#FFFFFF#000000##FFFFFF
##7F25991.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9C
Deuteranopia (green-blind)
#285396
Tritanopia (blue-blind)
#7E3E5D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f2599;
/* rgb */ color: rgb(127, 37, 153);
/* oklch */ color: oklch(45.7% 0.186 317.4);
Tailwind
colors: {
  custom: {
    50: '#a869b8',
    500: '#7f2599',
    950: '#000000',
  },
}
SCSS
$custom: #7f2599;
$custom-light: #a869b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2599",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 153
  },
  "hsl": {
    "h": 286.552,
    "s": 61.053,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45749,
    "c": 0.18608,
    "h": 317.4
  },
  "luminance": 0.08135
}

Semantic roles & 50–950 ramp

primary
#7F2599
secondary
#72BE5C
accent
#E44468
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2599

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

Preview Lab → · Contrast checker → · Palette generator →

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