#7F267D#7F267D

#7F267D is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.0% C 0.160 H 328.8°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#7F267D
RGBrgb(127, 38, 125)
HSLhsl(301, 54%, 32%)
HSVhsv(301, 70%, 50%)
CMYKcmyk(0%, 70.1%, 1.6%, 50.2%)
CIE-LABlab(32.66, 48.86, -30.04)
CIE-LCHlch(32.66, 57.36, 328.41°)
OKLaboklab(44.04% 0.1371 -0.083)
OKLCHoklch(44.04% 0.16 328.8)
XYZxyz(13.1470, 7.3799, 20.1301)
Luminance0.0738 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F267D #267F28
analogous
#54267F #7F267D #7F2651
triadic
#7F267D #7D7F26 #267D7F
tetradic
#7F267D #7F5426 #267F28 #26517F
square
#7F267D #7F5426 #267F28 #26517F
split-complementary
#7F267D #517F26 #267F54
monochromatic
#210A20 #50184F #7F267D #AE34AB #CC54C9

Accessibility & contrast

On white

8.48
#7F267D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7F267D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F267D
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F267D#FFFFFF#000000##FFFFFF
##7F267D1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B457F
Deuteranopia (green-blind)
#3E517B
Tritanopia (blue-blind)
#83324E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f267d;
/* rgb */ color: rgb(127, 38, 125);
/* oklch */ color: oklch(44.0% 0.160 328.8);
Tailwind
colors: {
  custom: {
    50: '#a769a3',
    500: '#7f267d',
    950: '#000000',
  },
}
SCSS
$custom: #7f267d;
$custom-light: #a769a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f267d",
  "rgb": {
    "r": 127,
    "g": 38,
    "b": 125
  },
  "hsl": {
    "h": 301.348,
    "s": 53.939,
    "l": 32.353
  },
  "oklch": {
    "l": 0.44041,
    "c": 0.1603,
    "h": 328.8
  },
  "luminance": 0.07379
}

Semantic roles & 50–950 ramp

primary
#7F267D
secondary
#51B053
accent
#DD4E4A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7F267D

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

Preview Lab → · Contrast checker → · Palette generator →

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