#7F259D#7F259D

#7F259D is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.0% C 0.190 H 316.0°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#7F259D
RGBrgb(127, 37, 157)
HSLhsl(285, 62%, 38%)
HSVhsv(285, 76%, 62%)
CMYKcmyk(19.1%, 76.4%, 0%, 38.4%)
CIE-LABlab(34.54, 55.32, -46.76)
CIE-LCHlch(34.54, 72.44, 319.80°)
OKLaboklab(46.03% 0.1364 -0.1318)
OKLCHoklch(46.03% 0.19 316)
XYZxyz(15.4988, 8.2701, 32.6716)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F259D #439D25
analogous
#43259D #7F259D #9D257F
triadic
#7F259D #9D7F25 #259D7F
tetradic
#7F259D #9D4325 #439D25 #257F9D
square
#7F259D #9D4325 #439D25 #257F9D
split-complementary
#7F259D #7F9D25 #259D43
monochromatic
#2F0E3A #57196B #7F259D #A731CE #BC62DA

Accessibility & contrast

On white

7.91
#7F259D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7F259D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F259D
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F259D#FFFFFF#000000##FFFFFF
##7F259D1.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA0
Deuteranopia (green-blind)
#23549A
Tritanopia (blue-blind)
#7D3F60
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f259d;
/* rgb */ color: rgb(127, 37, 157);
/* oklch */ color: oklch(46.0% 0.190 316.0);
Tailwind
colors: {
  custom: {
    50: '#a86abb',
    500: '#7f259d',
    950: '#000000',
  },
}
SCSS
$custom: #7f259d;
$custom-light: #a86abb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f259d",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 157
  },
  "hsl": {
    "h": 285,
    "s": 61.856,
    "l": 38.039
  },
  "oklch": {
    "l": 0.46031,
    "c": 0.18969,
    "h": 316
  },
  "luminance": 0.08269
}

Semantic roles & 50–950 ramp

primary
#7F259D
secondary
#77BF5E
accent
#E5436B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F259D

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

Preview Lab → · Contrast checker → · Palette generator →

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