#7F259B#7F259B

#7F259B is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.9% C 0.188 H 316.7°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#7F259B
RGBrgb(127, 37, 155)
HSLhsl(286, 61%, 38%)
HSVhsv(286, 76%, 61%)
CMYKcmyk(18.1%, 76.1%, 0%, 39.2%)
CIE-LABlab(34.40, 54.92, -45.77)
CIE-LCHlch(34.40, 71.49, 320.19°)
OKLaboklab(45.89% 0.1367 -0.1289)
OKLCHoklch(45.89% 0.188 316.7)
XYZxyz(15.3295, 8.2024, 31.7797)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F259B #419B25
analogous
#44259B #7F259B #9B257C
triadic
#7F259B #9B7F25 #259B7F
tetradic
#7F259B #9B4425 #419B25 #257C9B
square
#7F259B #9B4425 #419B25 #257C9B
split-complementary
#7F259B #7C9B25 #259B44
monochromatic
#2E0D38 #57196A #7F259B #A731CC #BD61D9

Accessibility & contrast

On white

7.95
#7F259B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7F259B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F259B
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F259B#FFFFFF#000000##FFFFFF
##7F259B1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9E
Deuteranopia (green-blind)
#265398
Tritanopia (blue-blind)
#7D3F5F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f259b;
/* rgb */ color: rgb(127, 37, 155);
/* oklch */ color: oklch(45.9% 0.188 316.7);
Tailwind
colors: {
  custom: {
    50: '#a86ab9',
    500: '#7f259b',
    950: '#000000',
  },
}
SCSS
$custom: #7f259b;
$custom-light: #a86ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f259b",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 155
  },
  "hsl": {
    "h": 285.763,
    "s": 61.458,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45889,
    "c": 0.18788,
    "h": 316.7
  },
  "luminance": 0.08202
}

Semantic roles & 50–950 ramp

primary
#7F259B
secondary
#74BF5D
accent
#E5436A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F259B

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

Preview Lab → · Contrast checker → · Palette generator →

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