#7F26A6#7F26A6

#7F26A6 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.8% C 0.197 H 312.9°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#7F26A6
RGBrgb(127, 38, 166)
HSLhsl(282, 63%, 40%)
HSVhsv(282, 77%, 65%)
CMYKcmyk(23.5%, 77.1%, 0%, 34.9%)
CIE-LABlab(35.31, 56.80, -50.96)
CIE-LCHlch(35.31, 76.31, 318.11°)
OKLaboklab(46.78% 0.1341 -0.1441)
OKLCHoklch(46.78% 0.197 312.9)
XYZxyz(16.3272, 8.6519, 36.8789)
Luminance0.0865 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F26A6 #4DA626
analogous
#3F26A6 #7F26A6 #A6268D
triadic
#7F26A6 #A67F26 #26A67F
tetradic
#7F26A6 #A63F26 #4DA626 #268DA6
square
#7F26A6 #A63F26 #4DA626 #268DA6
split-complementary
#7F26A6 #8DA626 #26A63F
monochromatic
#330F42 #591B74 #7F26A6 #A338D1 #BA6ADD

Accessibility & contrast

On white

7.69
#7F26A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7F26A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F26A6
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F26A6#FFFFFF#000000##FFFFFF
##7F26A61.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAA
Deuteranopia (green-blind)
#1555A3
Tritanopia (blue-blind)
#7B4465
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f26a6;
/* rgb */ color: rgb(127, 38, 166);
/* oklch */ color: oklch(46.8% 0.197 312.9);
Tailwind
colors: {
  custom: {
    50: '#a96bc1',
    500: '#7f26a6',
    950: '#000000',
  },
}
SCSS
$custom: #7f26a6;
$custom-light: #a96bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f26a6",
  "rgb": {
    "r": 127,
    "g": 38,
    "b": 166
  },
  "hsl": {
    "h": 281.719,
    "s": 62.745,
    "l": 40
  },
  "oklch": {
    "l": 0.46775,
    "c": 0.19684,
    "h": 312.9
  },
  "luminance": 0.08651
}

Semantic roles & 50–950 ramp

primary
#7F26A6
secondary
#82C365
accent
#E64274
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F26A6

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

Preview Lab → · Contrast checker → · Palette generator →

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