#7F268A#7F268A

#7F268A is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.8% C 0.172 H 323.1°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#7F268A
RGBrgb(127, 38, 138)
HSLhsl(293, 57%, 35%)
HSVhsv(293, 72%, 54%)
CMYKcmyk(8%, 72.5%, 0%, 45.9%)
CIE-LABlab(33.42, 51.23, -36.92)
CIE-LCHlch(33.42, 63.15, 324.22°)
OKLaboklab(44.84% 0.1372 -0.103)
OKLCHoklch(44.84% 0.172 323.1)
XYZxyz(14.0325, 7.7340, 24.7935)
Luminance0.0773 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F268A #318A26
analogous
#4D268A #7F268A #8A2663
triadic
#7F268A #8A7F26 #268A7F
tetradic
#7F268A #8A4D26 #318A26 #26638A
square
#7F268A #8A4D26 #318A26 #26638A
split-complementary
#7F268A #638A26 #268A4D
monochromatic
#270C2A #53195A #7F268A #AB33BA #C459D1

Accessibility & contrast

On white

8.25
#7F268A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7F268A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F268A
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F268A#FFFFFF#000000##FFFFFF
##7F268A1.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02488D
Deuteranopia (green-blind)
#365288
Tritanopia (blue-blind)
#813855
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f268a;
/* rgb */ color: rgb(127, 38, 138);
/* oklch */ color: oklch(44.8% 0.172 323.1);
Tailwind
colors: {
  custom: {
    50: '#a769ad',
    500: '#7f268a',
    950: '#000000',
  },
}
SCSS
$custom: #7f268a;
$custom-light: #a769ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7f268a",
  "rgb": {
    "r": 127,
    "g": 38,
    "b": 138
  },
  "hsl": {
    "h": 293.4,
    "s": 56.818,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44838,
    "c": 0.17152,
    "h": 323.1
  },
  "luminance": 0.07733
}

Semantic roles & 50–950 ramp

primary
#7F268A
secondary
#60B656
accent
#E04858
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F268A

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

Preview Lab → · Contrast checker → · Palette generator →

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