#7F267E#7F267E

#7F267E is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.1% C 0.161 H 328.4°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#7F267E
RGBrgb(127, 38, 126)
HSLhsl(301, 54%, 32%)
HSVhsv(301, 70%, 50%)
CMYKcmyk(0%, 70.1%, 0.8%, 50.2%)
CIE-LABlab(32.71, 49.03, -30.58)
CIE-LCHlch(32.71, 57.79, 328.05°)
OKLaboklab(44.1% 0.1372 -0.0845)
OKLCHoklch(44.1% 0.161 328.4)
XYZxyz(13.2113, 7.4055, 20.4682)
Luminance0.0741 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F267E #267F27
analogous
#53267F #7F267E #7F2652
triadic
#7F267E #7E7F26 #267E7F
tetradic
#7F267E #7F5326 #267F27 #26527F
square
#7F267E #7F5326 #267F27 #26527F
split-complementary
#7F267E #527F26 #267F53
monochromatic
#210A21 #50184F #7F267E #AE34AD #CC54CA

Accessibility & contrast

On white

8.46
#7F267E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F267E
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F267E#FFFFFF#000000##FFFFFF
##7F267E1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194581
Deuteranopia (green-blind)
#3D517C
Tritanopia (blue-blind)
#83324F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f267e;
/* rgb */ color: rgb(127, 38, 126);
/* oklch */ color: oklch(44.1% 0.161 328.4);
Tailwind
colors: {
  custom: {
    50: '#a769a4',
    500: '#7f267e',
    950: '#000000',
  },
}
SCSS
$custom: #7f267e;
$custom-light: #a769a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f267e",
  "rgb": {
    "r": 127,
    "g": 38,
    "b": 126
  },
  "hsl": {
    "h": 300.674,
    "s": 53.939,
    "l": 32.353
  },
  "oklch": {
    "l": 0.441,
    "c": 0.16114,
    "h": 328.4
  },
  "luminance": 0.07405
}

Semantic roles & 50–950 ramp

primary
#7F267E
secondary
#51B052
accent
#DD4C4A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7F267E

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

Preview Lab → · Contrast checker → · Palette generator →

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