#7F267B#7F267B

#7F267B is a dark, vivid purple. Relative luminance 0.073; OKLCH L 43.9% C 0.159 H 329.8°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#7F267B
RGBrgb(127, 38, 123)
HSLhsl(303, 54%, 32%)
HSVhsv(303, 70%, 50%)
CMYKcmyk(0%, 70.1%, 3.1%, 50.2%)
CIE-LABlab(32.55, 48.51, -28.97)
CIE-LCHlch(32.55, 56.50, 329.16°)
OKLaboklab(43.92% 0.1371 -0.0799)
OKLCHoklch(43.92% 0.159 329.8)
XYZxyz(13.0206, 7.3293, 19.4640)
Luminance0.0733 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F267B #267F2A
analogous
#57267F #7F267B #7F264E
triadic
#7F267B #7B7F26 #267B7F
tetradic
#7F267B #7F5726 #267F2A #264E7F
square
#7F267B #7F5726 #267F2A #264E7F
split-complementary
#7F267B #4E7F26 #267F57
monochromatic
#210A20 #50184D #7F267B #AE34A9 #CC54C6

Accessibility & contrast

On white

8.52
#7F267B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7F267B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F267B
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F267B#FFFFFF#000000##FFFFFF
##7F267B1.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D457D
Deuteranopia (green-blind)
#3F5179
Tritanopia (blue-blind)
#84314D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f267b;
/* rgb */ color: rgb(127, 38, 123);
/* oklch */ color: oklch(43.9% 0.159 329.8);
Tailwind
colors: {
  custom: {
    50: '#a769a1',
    500: '#7f267b',
    950: '#000000',
  },
}
SCSS
$custom: #7f267b;
$custom-light: #a769a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f267b",
  "rgb": {
    "r": 127,
    "g": 38,
    "b": 123
  },
  "hsl": {
    "h": 302.697,
    "s": 53.939,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43924,
    "c": 0.15862,
    "h": 329.8
  },
  "luminance": 0.07328
}

Semantic roles & 50–950 ramp

primary
#7F267B
secondary
#51B055
accent
#DD514A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070F
muted
#7F7A7E

Preview Lab

Preview with #7F267B

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

Preview Lab → · Contrast checker → · Palette generator →

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