#7F269A#7F269A

#7F269A is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.9% C 0.186 H 317.0°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#7F269A
RGBrgb(127, 38, 154)
HSLhsl(286, 60%, 38%)
HSVhsv(286, 75%, 60%)
CMYKcmyk(17.5%, 75.3%, 0%, 39.6%)
CIE-LABlab(34.46, 54.35, -45.06)
CIE-LCHlch(34.46, 70.60, 320.34°)
OKLaboklab(45.91% 0.1359 -0.1268)
OKLCHoklch(45.91% 0.186 317)
XYZxyz(15.2774, 8.2320, 31.3498)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F269A #419A26
analogous
#45269A #7F269A #9A267B
triadic
#7F269A #9A7F26 #269A7F
tetradic
#7F269A #9A4526 #419A26 #267B9A
square
#7F269A #9A4526 #419A26 #267B9A
split-complementary
#7F269A #7B9A26 #269A45
monochromatic
#2E0E38 #571A69 #7F269A #A732CB #BD62D8

Accessibility & contrast

On white

7.94
#7F269A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F269A
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F269A#FFFFFF#000000##FFFFFF
##7F269A1.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9D
Deuteranopia (green-blind)
#285497
Tritanopia (blue-blind)
#7E3F5E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f269a;
/* rgb */ color: rgb(127, 38, 154);
/* oklch */ color: oklch(45.9% 0.186 317.0);
Tailwind
colors: {
  custom: {
    50: '#a86ab8',
    500: '#7f269a',
    950: '#000000',
  },
}
SCSS
$custom: #7f269a;
$custom-light: #a86ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f269a",
  "rgb": {
    "r": 127,
    "g": 38,
    "b": 154
  },
  "hsl": {
    "h": 286.034,
    "s": 60.417,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4591,
    "c": 0.18586,
    "h": 317
  },
  "luminance": 0.08231
}

Semantic roles & 50–950 ramp

primary
#7F269A
secondary
#74BE5E
accent
#E44469
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F269A

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

Preview Lab → · Contrast checker → · Palette generator →

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