#7F26A4#7F26A4

#7F26A4 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.6% C 0.195 H 313.6°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#7F26A4
RGBrgb(127, 38, 164)
HSLhsl(282, 62%, 40%)
HSVhsv(282, 77%, 64%)
CMYKcmyk(22.6%, 76.8%, 0%, 35.7%)
CIE-LABlab(35.16, 56.39, -49.99)
CIE-LCHlch(35.16, 75.35, 318.44°)
OKLaboklab(46.63% 0.1344 -0.1412)
OKLCHoklch(46.63% 0.195 313.6)
XYZxyz(16.1452, 8.5791, 35.9202)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F26A4 #4BA426
analogous
#4026A4 #7F26A4 #A4268A
triadic
#7F26A4 #A47F26 #26A47F
tetradic
#7F26A4 #A44026 #4BA426 #268AA4
square
#7F26A4 #A44026 #4BA426 #268AA4
split-complementary
#7F26A4 #8AA426 #26A440
monochromatic
#320F41 #591A72 #7F26A4 #A337D1 #BA68DC

Accessibility & contrast

On white

7.73
#7F26A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F26A4
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F26A4#FFFFFF#000000##FFFFFF
##7F26A41.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA7
Deuteranopia (green-blind)
#1955A1
Tritanopia (blue-blind)
#7B4364
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f26a4;
/* rgb */ color: rgb(127, 38, 164);
/* oklch */ color: oklch(46.6% 0.195 313.6);
Tailwind
colors: {
  custom: {
    50: '#a86ac0',
    500: '#7f26a4',
    950: '#000000',
  },
}
SCSS
$custom: #7f26a4;
$custom-light: #a86ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f26a4",
  "rgb": {
    "r": 127,
    "g": 38,
    "b": 164
  },
  "hsl": {
    "h": 282.381,
    "s": 62.376,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46627,
    "c": 0.195,
    "h": 313.6
  },
  "luminance": 0.08579
}

Semantic roles & 50–950 ramp

primary
#7F26A4
secondary
#7FC264
accent
#E54272
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F26A4

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

Preview Lab → · Contrast checker → · Palette generator →

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