#7F269E#7F269E

#7F269E is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.2% C 0.190 H 315.6°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#7F269E
RGBrgb(127, 38, 158)
HSLhsl(285, 61%, 38%)
HSVhsv(285, 76%, 62%)
CMYKcmyk(19.6%, 75.9%, 0%, 38%)
CIE-LABlab(34.74, 55.16, -47.05)
CIE-LCHlch(34.74, 72.50, 319.54°)
OKLaboklab(46.19% 0.1354 -0.1326)
OKLCHoklch(46.19% 0.19 315.6)
XYZxyz(15.6161, 8.3675, 33.1336)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F269E #459E26
analogous
#43269E #7F269E #9E2681
triadic
#7F269E #9E7F26 #269E7F
tetradic
#7F269E #9E4326 #459E26 #26819E
square
#7F269E #9E4326 #459E26 #26819E
split-complementary
#7F269E #819E26 #269E43
monochromatic
#300E3B #571A6D #7F269E #A633CE #BC65DA

Accessibility & contrast

On white

7.86
#7F269E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7F269E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F269E
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F269E#FFFFFF#000000##FFFFFF
##7F269E1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA1
Deuteranopia (green-blind)
#23549B
Tritanopia (blue-blind)
#7D4061
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f269e;
/* rgb */ color: rgb(127, 38, 158);
/* oklch */ color: oklch(46.2% 0.190 315.6);
Tailwind
colors: {
  custom: {
    50: '#a86abb',
    500: '#7f269e',
    950: '#000000',
  },
}
SCSS
$custom: #7f269e;
$custom-light: #a86abb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f269e",
  "rgb": {
    "r": 127,
    "g": 38,
    "b": 158
  },
  "hsl": {
    "h": 284.5,
    "s": 61.224,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46193,
    "c": 0.18951,
    "h": 315.6
  },
  "luminance": 0.08367
}

Semantic roles & 50–950 ramp

primary
#7F269E
secondary
#79C060
accent
#E4436D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F269E

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

Preview Lab → · Contrast checker → · Palette generator →

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