#7F259F#7F259F

#7F259F is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.2% C 0.191 H 315.3°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#7F259F
RGBrgb(127, 37, 159)
HSLhsl(284, 62%, 38%)
HSVhsv(284, 77%, 62%)
CMYKcmyk(20.1%, 76.7%, 0%, 37.6%)
CIE-LABlab(34.68, 55.73, -47.75)
CIE-LCHlch(34.68, 73.38, 319.41°)
OKLaboklab(46.17% 0.1361 -0.1347)
OKLCHoklch(46.17% 0.191 315.3)
XYZxyz(15.6710, 8.3390, 33.5783)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F259F #459F25
analogous
#42259F #7F259F #9F2582
triadic
#7F259F #9F7F25 #259F7F
tetradic
#7F259F #9F4225 #459F25 #25829F
square
#7F259F #9F4225 #459F25 #25829F
split-complementary
#7F259F #829F25 #259F42
monochromatic
#300E3C #57196D #7F259F #A632CF #BC64DB

Accessibility & contrast

On white

7.87
#7F259F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7F259F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F259F
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F259F#FFFFFF#000000##FFFFFF
##7F259F1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA2
Deuteranopia (green-blind)
#21549C
Tritanopia (blue-blind)
#7C4061
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f259f;
/* rgb */ color: rgb(127, 37, 159);
/* oklch */ color: oklch(46.2% 0.191 315.3);
Tailwind
colors: {
  custom: {
    50: '#a86abc',
    500: '#7f259f',
    950: '#000000',
  },
}
SCSS
$custom: #7f259f;
$custom-light: #a86abc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f259f",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 159
  },
  "hsl": {
    "h": 284.262,
    "s": 62.245,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46174,
    "c": 0.19149,
    "h": 315.3
  },
  "luminance": 0.08338
}

Semantic roles & 50–950 ramp

primary
#7F259F
secondary
#79C05F
accent
#E5426D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F259F

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

Preview Lab → · Contrast checker → · Palette generator →

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