#7F26A2#7F26A2

#7F26A2 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.5% C 0.193 H 314.2°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#7F26A2
RGBrgb(127, 38, 162)
HSLhsl(283, 62%, 39%)
HSVhsv(283, 77%, 64%)
CMYKcmyk(21.6%, 76.5%, 0%, 36.5%)
CIE-LABlab(35.02, 55.98, -49.01)
CIE-LCHlch(35.02, 74.40, 318.80°)
OKLaboklab(46.48% 0.1348 -0.1384)
OKLCHoklch(46.48% 0.193 314.2)
XYZxyz(15.9660, 8.5074, 34.9765)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F26A2 #49A226
analogous
#4126A2 #7F26A2 #A22687
triadic
#7F26A2 #A27F26 #26A27F
tetradic
#7F26A2 #A24126 #49A226 #2687A2
square
#7F26A2 #A24126 #49A226 #2687A2
split-complementary
#7F26A2 #87A226 #26A241
monochromatic
#310F3F #581A70 #7F26A2 #A435D0 #BB67DB

Accessibility & contrast

On white

7.77
#7F26A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7F26A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F26A2
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F26A2#FFFFFF#000000##FFFFFF
##7F26A21.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#1D549F
Tritanopia (blue-blind)
#7C4263
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f26a2;
/* rgb */ color: rgb(127, 38, 162);
/* oklch */ color: oklch(46.5% 0.193 314.2);
Tailwind
colors: {
  custom: {
    50: '#a86abe',
    500: '#7f26a2',
    950: '#000000',
  },
}
SCSS
$custom: #7f26a2;
$custom-light: #a86abe;
$custom-dark: #000000;
JSON
{
  "hex": "#7f26a2",
  "rgb": {
    "r": 127,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 283.065,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46481,
    "c": 0.19316,
    "h": 314.2
  },
  "luminance": 0.08507
}

Semantic roles & 50–950 ramp

primary
#7F26A2
secondary
#7DC163
accent
#E54371
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F26A2

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

Preview Lab → · Contrast checker → · Palette generator →

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