#7F26AB#7F26AB

#7F26AB is a mid, highly saturated purple. Relative luminance 0.088; OKLCH L 47.1% C 0.201 H 311.4°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#7F26AB
RGBrgb(127, 38, 171)
HSLhsl(280, 64%, 41%)
HSVhsv(280, 78%, 67%)
CMYKcmyk(25.7%, 77.8%, 0%, 32.9%)
CIE-LABlab(35.67, 57.85, -53.36)
CIE-LCHlch(35.67, 78.70, 317.31°)
OKLaboklab(47.15% 0.1332 -0.1512)
OKLCHoklch(47.15% 0.201 311.4)
XYZxyz(16.7948, 8.8390, 39.3416)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F26AB #52AB26
analogous
#3C26AB #7F26AB #AB2694
triadic
#7F26AB #AB7F26 #26AB7F
tetradic
#7F26AB #AB3C26 #52AB26 #2694AB
square
#7F26AB #AB3C26 #52AB26 #2694AB
split-complementary
#7F26AB #94AB26 #26AB3C
monochromatic
#351047 #5A1B79 #7F26AB #A13BD3 #B96DDF

Accessibility & contrast

On white

7.59
#7F26AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7F26AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F26AB
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F26AB#FFFFFF#000000##FFFFFF
##7F26AB1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#0655A8
Tritanopia (blue-blind)
#794668
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f26ab;
/* rgb */ color: rgb(127, 38, 171);
/* oklch */ color: oklch(47.1% 0.201 311.4);
Tailwind
colors: {
  custom: {
    50: '#a96bc5',
    500: '#7f26ab',
    950: '#000000',
  },
}
SCSS
$custom: #7f26ab;
$custom-light: #a96bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f26ab",
  "rgb": {
    "r": 127,
    "g": 38,
    "b": 171
  },
  "hsl": {
    "h": 280.15,
    "s": 63.636,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47149,
    "c": 0.20145,
    "h": 311.4
  },
  "luminance": 0.08839
}

Semantic roles & 50–950 ramp

primary
#7F26AB
secondary
#87C568
accent
#E74178
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F26AB

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

Preview Lab → · Contrast checker → · Palette generator →

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