#7F2497#7F2497

#7F2497 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.5% C 0.185 H 318.2°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#7F2497
RGBrgb(127, 36, 151)
HSLhsl(287, 61%, 37%)
HSVhsv(287, 76%, 59%)
CMYKcmyk(15.9%, 76.2%, 0%, 40.8%)
CIE-LABlab(34.00, 54.49, -43.98)
CIE-LCHlch(34.00, 70.02, 321.09°)
OKLaboklab(45.52% 0.1382 -0.1236)
OKLCHoklch(45.52% 0.185 318.2)
XYZxyz(14.9684, 8.0088, 30.0296)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2497 #3C9724
analogous
#462497 #7F2497 #972476
triadic
#7F2497 #977F24 #24977F
tetradic
#7F2497 #974624 #3C9724 #247697
square
#7F2497 #974624 #3C9724 #247697
split-complementary
#7F2497 #769724 #249746
monochromatic
#2C0C34 #551866 #7F2497 #A930C8 #BF5DD8

Accessibility & contrast

On white

8.07
#7F2497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7F2497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2497
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2497#FFFFFF#000000##FFFFFF
##7F24971.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#295394
Tritanopia (blue-blind)
#7E3C5C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f2497;
/* rgb */ color: rgb(127, 36, 151);
/* oklch */ color: oklch(45.5% 0.185 318.2);
Tailwind
colors: {
  custom: {
    50: '#a869b6',
    500: '#7f2497',
    950: '#000000',
  },
}
SCSS
$custom: #7f2497;
$custom-light: #a869b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2497",
  "rgb": {
    "r": 127,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 287.478,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45519,
    "c": 0.18537,
    "h": 318.2
  },
  "luminance": 0.08008
}

Semantic roles & 50–950 ramp

primary
#7F2497
secondary
#6EBD5A
accent
#E54365
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2497

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

Preview Lab → · Contrast checker → · Palette generator →

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