#7F268F#7F268F

#7F268F is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.2% C 0.176 H 321.1°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#7F268F
RGBrgb(127, 38, 143)
HSLhsl(291, 58%, 35%)
HSVhsv(291, 73%, 56%)
CMYKcmyk(11.2%, 73.4%, 0%, 43.9%)
CIE-LABlab(33.74, 52.19, -39.50)
CIE-LCHlch(33.74, 65.45, 322.88°)
OKLaboklab(45.16% 0.1369 -0.1105)
OKLCHoklch(45.16% 0.176 321.1)
XYZxyz(14.4029, 7.8822, 26.7440)
Luminance0.0788 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F268F #368F26
analogous
#4A268F #7F268F #8F266A
triadic
#7F268F #8F7F26 #268F7F
tetradic
#7F268F #8F4A26 #368F26 #266A8F
square
#7F268F #8F4A26 #368F26 #266A8F
split-complementary
#7F268F #6A8F26 #268F4A
monochromatic
#290C2E #54195F #7F268F #AA33BF #C15CD4

Accessibility & contrast

On white

8.15
#7F268F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7F268F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F268F
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F268F#FFFFFF#000000##FFFFFF
##7F268F1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#32538D
Tritanopia (blue-blind)
#803A58
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f268f;
/* rgb */ color: rgb(127, 38, 143);
/* oklch */ color: oklch(45.2% 0.176 321.1);
Tailwind
colors: {
  custom: {
    50: '#a769b0',
    500: '#7f268f',
    950: '#000000',
  },
}
SCSS
$custom: #7f268f;
$custom-light: #a769b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f268f",
  "rgb": {
    "r": 127,
    "g": 38,
    "b": 143
  },
  "hsl": {
    "h": 290.857,
    "s": 58.011,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45163,
    "c": 0.17595,
    "h": 321.1
  },
  "luminance": 0.07881
}

Semantic roles & 50–950 ramp

primary
#7F268F
secondary
#67B958
accent
#E1475E
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F268F

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

Preview Lab → · Contrast checker → · Palette generator →

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