#7F267C#7F267C

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

Color values

HEX#7F267C
RGBrgb(127, 38, 124)
HSLhsl(302, 54%, 32%)
HSVhsv(302, 70%, 50%)
CMYKcmyk(0%, 70.1%, 2.4%, 50.2%)
CIE-LABlab(32.60, 48.68, -29.51)
CIE-LCHlch(32.60, 56.92, 328.78°)
OKLaboklab(43.98% 0.1371 -0.0814)
OKLCHoklch(43.98% 0.159 329.3)
XYZxyz(13.0835, 7.3544, 19.7953)
Luminance0.0735 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F267C #267F29
analogous
#55267F #7F267C #7F2650
triadic
#7F267C #7C7F26 #267C7F
tetradic
#7F267C #7F5526 #267F29 #26507F
square
#7F267C #7F5526 #267F29 #26507F
split-complementary
#7F267C #507F26 #267F55
monochromatic
#210A20 #50184E #7F267C #AE34AA #CC54C8

Accessibility & contrast

On white

8.50
#7F267C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F267C
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F267C#FFFFFF#000000##FFFFFF
##7F267C1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C457E
Deuteranopia (green-blind)
#3E517A
Tritanopia (blue-blind)
#84314E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f267c;
/* rgb */ color: rgb(127, 38, 124);
/* oklch */ color: oklch(44.0% 0.159 329.3);
Tailwind
colors: {
  custom: {
    50: '#a769a2',
    500: '#7f267c',
    950: '#000000',
  },
}
SCSS
$custom: #7f267c;
$custom-light: #a769a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f267c",
  "rgb": {
    "r": 127,
    "g": 38,
    "b": 124
  },
  "hsl": {
    "h": 302.022,
    "s": 53.939,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43982,
    "c": 0.15946,
    "h": 329.3
  },
  "luminance": 0.07353
}

Semantic roles & 50–950 ramp

primary
#7F267C
secondary
#51B054
accent
#DD4F4A
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7F267C

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

Preview Lab → · Contrast checker → · Palette generator →

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