#7F26A5#7F26A5

#7F26A5 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.7% C 0.196 H 313.3°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#7F26A5
RGBrgb(127, 38, 165)
HSLhsl(282, 63%, 40%)
HSVhsv(282, 77%, 65%)
CMYKcmyk(23%, 77%, 0%, 35.3%)
CIE-LABlab(35.23, 56.59, -50.47)
CIE-LCHlch(35.23, 75.83, 318.27°)
OKLaboklab(46.7% 0.1343 -0.1427)
OKLCHoklch(46.7% 0.196 313.3)
XYZxyz(16.2358, 8.6154, 36.3977)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F26A5 #4CA526
analogous
#3F26A5 #7F26A5 #A5268C
triadic
#7F26A5 #A57F26 #26A57F
tetradic
#7F26A5 #A53F26 #4CA526 #268CA5
square
#7F26A5 #A53F26 #4CA526 #268CA5
split-complementary
#7F26A5 #8CA526 #26A53F
monochromatic
#320F42 #591B73 #7F26A5 #A337D1 #BA69DC

Accessibility & contrast

On white

7.71
#7F26A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7F26A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F26A5
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F26A5#FFFFFF#000000##FFFFFF
##7F26A51.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA8
Deuteranopia (green-blind)
#1855A2
Tritanopia (blue-blind)
#7B4364
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f26a5;
/* rgb */ color: rgb(127, 38, 165);
/* oklch */ color: oklch(46.7% 0.196 313.3);
Tailwind
colors: {
  custom: {
    50: '#a86ac0',
    500: '#7f26a5',
    950: '#000000',
  },
}
SCSS
$custom: #7f26a5;
$custom-light: #a86ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f26a5",
  "rgb": {
    "r": 127,
    "g": 38,
    "b": 165
  },
  "hsl": {
    "h": 282.047,
    "s": 62.562,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46701,
    "c": 0.19592,
    "h": 313.3
  },
  "luminance": 0.08615
}

Semantic roles & 50–950 ramp

primary
#7F26A5
secondary
#80C364
accent
#E64273
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F26A5

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

Preview Lab → · Contrast checker → · Palette generator →

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