#7F2597#7F2597

#7F2597 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.6% C 0.184 H 318.1°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#7F2597
RGBrgb(127, 37, 151)
HSLhsl(287, 61%, 37%)
HSVhsv(287, 75%, 59%)
CMYKcmyk(15.9%, 75.5%, 0%, 40.8%)
CIE-LABlab(34.13, 54.12, -43.77)
CIE-LCHlch(34.13, 69.61, 321.04°)
OKLaboklab(45.61% 0.1372 -0.123)
OKLCHoklch(45.61% 0.184 318.1)
XYZxyz(14.9991, 8.0702, 30.0398)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2597 #3D9725
analogous
#462597 #7F2597 #972576
triadic
#7F2597 #977F25 #25977F
tetradic
#7F2597 #974625 #3D9725 #257697
square
#7F2597 #974625 #3D9725 #257697
split-complementary
#7F2597 #769725 #259746
monochromatic
#2C0D35 #561966 #7F2597 #A831C8 #BE5FD8

Accessibility & contrast

On white

8.03
#7F2597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7F2597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2597
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2597#FFFFFF#000000##FFFFFF
##7F25971.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#2A5394
Tritanopia (blue-blind)
#7E3D5C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f2597;
/* rgb */ color: rgb(127, 37, 151);
/* oklch */ color: oklch(45.6% 0.184 318.1);
Tailwind
colors: {
  custom: {
    50: '#a869b6',
    500: '#7f2597',
    950: '#000000',
  },
}
SCSS
$custom: #7f2597;
$custom-light: #a869b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2597",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 151
  },
  "hsl": {
    "h": 287.368,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.4561,
    "c": 0.18427,
    "h": 318.1
  },
  "luminance": 0.0807
}

Semantic roles & 50–950 ramp

primary
#7F2597
secondary
#70BD5B
accent
#E44466
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2597

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

Preview Lab → · Contrast checker → · Palette generator →

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