#7F268D#7F268D

#7F268D is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.174 H 321.9°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#7F268D
RGBrgb(127, 38, 141)
HSLhsl(292, 58%, 35%)
HSVhsv(292, 73%, 55%)
CMYKcmyk(9.9%, 73%, 0%, 44.7%)
CIE-LABlab(33.61, 51.80, -38.47)
CIE-LCHlch(33.61, 64.53, 323.40°)
OKLaboklab(45.03% 0.137 -0.1075)
OKLCHoklch(45.03% 0.174 321.9)
XYZxyz(14.2527, 7.8221, 25.9532)
Luminance0.0782 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F268D #348D26
analogous
#4C268D #7F268D #8D2667
triadic
#7F268D #8D7F26 #268D7F
tetradic
#7F268D #8D4C26 #348D26 #26678D
square
#7F268D #8D4C26 #348D26 #26678D
split-complementary
#7F268D #678D26 #268D4C
monochromatic
#280C2D #54195D #7F268D #AA33BD #C25BD3

Accessibility & contrast

On white

8.19
#7F268D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7F268D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F268D
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F268D#FFFFFF#000000##FFFFFF
##7F268D1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#34528B
Tritanopia (blue-blind)
#803957
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f268d;
/* rgb */ color: rgb(127, 38, 141);
/* oklch */ color: oklch(45.0% 0.174 321.9);
Tailwind
colors: {
  custom: {
    50: '#a769af',
    500: '#7f268d',
    950: '#000000',
  },
}
SCSS
$custom: #7f268d;
$custom-light: #a769af;
$custom-dark: #000000;
JSON
{
  "hex": "#7f268d",
  "rgb": {
    "r": 127,
    "g": 38,
    "b": 141
  },
  "hsl": {
    "h": 291.845,
    "s": 57.542,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45032,
    "c": 0.17418,
    "h": 321.9
  },
  "luminance": 0.07821
}

Semantic roles & 50–950 ramp

primary
#7F268D
secondary
#64B857
accent
#E1475C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F268D

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

Preview Lab → · Contrast checker → · Palette generator →

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