#7F259A#7F259A

#7F259A is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.8% C 0.187 H 317.0°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#7F259A
RGBrgb(127, 37, 154)
HSLhsl(286, 61%, 37%)
HSVhsv(286, 76%, 60%)
CMYKcmyk(17.5%, 76%, 0%, 39.6%)
CIE-LABlab(34.33, 54.72, -45.27)
CIE-LCHlch(34.33, 71.02, 320.40°)
OKLaboklab(45.82% 0.1368 -0.1274)
OKLCHoklch(45.82% 0.187 317)
XYZxyz(15.2458, 8.1689, 31.3393)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F259A #409A25
analogous
#45259A #7F259A #9A257A
triadic
#7F259A #9A7F25 #259A7F
tetradic
#7F259A #9A4525 #409A25 #257A9A
square
#7F259A #9A4525 #409A25 #257A9A
split-complementary
#7F259A #7A9A25 #259A45
monochromatic
#2E0D37 #561969 #7F259A #A831CB #BD60D9

Accessibility & contrast

On white

7.97
#7F259A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F259A
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F259A#FFFFFF#000000##FFFFFF
##7F259A1.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9D
Deuteranopia (green-blind)
#275397
Tritanopia (blue-blind)
#7E3E5E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f259a;
/* rgb */ color: rgb(127, 37, 154);
/* oklch */ color: oklch(45.8% 0.187 317.0);
Tailwind
colors: {
  custom: {
    50: '#a86ab8',
    500: '#7f259a',
    950: '#000000',
  },
}
SCSS
$custom: #7f259a;
$custom-light: #a86ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f259a",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 154
  },
  "hsl": {
    "h": 286.154,
    "s": 61.257,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45819,
    "c": 0.18697,
    "h": 317
  },
  "luminance": 0.08168
}

Semantic roles & 50–950 ramp

primary
#7F259A
secondary
#73BE5D
accent
#E44369
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F259A

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

Preview Lab → · Contrast checker → · Palette generator →

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