#7F269B#7F269B

#7F269B is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.0% C 0.187 H 316.6°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#7F269B
RGBrgb(127, 38, 155)
HSLhsl(286, 61%, 38%)
HSVhsv(286, 75%, 61%)
CMYKcmyk(18.1%, 75.5%, 0%, 39.2%)
CIE-LABlab(34.53, 54.55, -45.56)
CIE-LCHlch(34.53, 71.08, 320.13°)
OKLaboklab(45.98% 0.1358 -0.1283)
OKLCHoklch(45.98% 0.187 316.6)
XYZxyz(15.3610, 8.2654, 31.7902)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F269B #429B26
analogous
#44269B #7F269B #9B267C
triadic
#7F269B #9B7F26 #269B7F
tetradic
#7F269B #9B4426 #429B26 #267C9B
square
#7F269B #9B4426 #429B26 #267C9B
split-complementary
#7F269B #7C9B26 #269B44
monochromatic
#2E0E39 #571A6A #7F269B #A732CC #BC63D9

Accessibility & contrast

On white

7.92
#7F269B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7F269B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F269B
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F269B#FFFFFF#000000##FFFFFF
##7F269B1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9E
Deuteranopia (green-blind)
#275498
Tritanopia (blue-blind)
#7D3F5F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f269b;
/* rgb */ color: rgb(127, 38, 155);
/* oklch */ color: oklch(46.0% 0.187 316.6);
Tailwind
colors: {
  custom: {
    50: '#a86ab9',
    500: '#7f269b',
    950: '#000000',
  },
}
SCSS
$custom: #7f269b;
$custom-light: #a86ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f269b",
  "rgb": {
    "r": 127,
    "g": 38,
    "b": 155
  },
  "hsl": {
    "h": 285.641,
    "s": 60.622,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4598,
    "c": 0.18678,
    "h": 316.6
  },
  "luminance": 0.08265
}

Semantic roles & 50–950 ramp

primary
#7F269B
secondary
#75BE5F
accent
#E4446A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F269B

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

Preview Lab → · Contrast checker → · Palette generator →

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