#7F268E#7F268E

#7F268E is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.1% C 0.175 H 321.5°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#7F268E
RGBrgb(127, 38, 142)
HSLhsl(291, 58%, 35%)
HSVhsv(291, 73%, 56%)
CMYKcmyk(10.6%, 73.2%, 0%, 44.3%)
CIE-LABlab(33.67, 51.99, -38.99)
CIE-LCHlch(33.67, 64.99, 323.14°)
OKLaboklab(45.1% 0.137 -0.109)
OKLCHoklch(45.1% 0.175 321.5)
XYZxyz(14.3275, 7.8520, 26.3469)
Luminance0.0785 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F268E #358E26
analogous
#4B268E #7F268E #8E2669
triadic
#7F268E #8E7F26 #268E7F
tetradic
#7F268E #8E4B26 #358E26 #26698E
square
#7F268E #8E4B26 #358E26 #26698E
split-complementary
#7F268E #698E26 #268E4B
monochromatic
#290C2D #54195E #7F268E #AA33BE #C25BD3

Accessibility & contrast

On white

8.17
#7F268E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7F268E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F268E
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F268E#FFFFFF#000000##FFFFFF
##7F268E1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#33528C
Tritanopia (blue-blind)
#803958
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f268e;
/* rgb */ color: rgb(127, 38, 142);
/* oklch */ color: oklch(45.1% 0.175 321.5);
Tailwind
colors: {
  custom: {
    50: '#a769af',
    500: '#7f268e',
    950: '#000000',
  },
}
SCSS
$custom: #7f268e;
$custom-light: #a769af;
$custom-dark: #000000;
JSON
{
  "hex": "#7f268e",
  "rgb": {
    "r": 127,
    "g": 38,
    "b": 142
  },
  "hsl": {
    "h": 291.346,
    "s": 57.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.45097,
    "c": 0.17506,
    "h": 321.5
  },
  "luminance": 0.07851
}

Semantic roles & 50–950 ramp

primary
#7F268E
secondary
#66B858
accent
#E1475D
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F268E

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

Preview Lab → · Contrast checker → · Palette generator →

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