#7F257A#7F257A

#7F257A is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.8% C 0.159 H 330.3°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#7F257A
RGBrgb(127, 37, 122)
HSLhsl(303, 55%, 32%)
HSVhsv(303, 71%, 50%)
CMYKcmyk(0%, 70.9%, 3.9%, 50.2%)
CIE-LABlab(32.35, 48.73, -28.65)
CIE-LCHlch(32.35, 56.52, 329.55°)
OKLaboklab(43.77% 0.1381 -0.0789)
OKLCHoklch(43.77% 0.159 330.3)
XYZxyz(12.9268, 7.2413, 19.1254)
Luminance0.0724 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F257A #257F2A
analogous
#57257F #7F257A #7F254D
triadic
#7F257A #7A7F25 #257A7F
tetradic
#7F257A #7F5725 #257F2A #254D7F
square
#7F257A #7F5725 #257F2A #254D7F
split-complementary
#7F257A #4D7F25 #257F57
monochromatic
#20091F #50174C #7F257A #AE33A8 #CD52C6

Accessibility & contrast

On white

8.58
#7F257A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7F257A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F257A
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F257A#FFFFFF#000000##FFFFFF
##7F257A1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C447C
Deuteranopia (green-blind)
#3F5078
Tritanopia (blue-blind)
#84304C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f257a;
/* rgb */ color: rgb(127, 37, 122);
/* oklch */ color: oklch(43.8% 0.159 330.3);
Tailwind
colors: {
  custom: {
    50: '#a768a1',
    500: '#7f257a',
    950: '#000000',
  },
}
SCSS
$custom: #7f257a;
$custom-light: #a768a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f257a",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 122
  },
  "hsl": {
    "h": 303.333,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43766,
    "c": 0.15908,
    "h": 330.3
  },
  "luminance": 0.0724
}

Semantic roles & 50–950 ramp

primary
#7F257A
secondary
#4FB154
accent
#DE524A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070F
muted
#7F7A7E

Preview Lab

Preview with #7F257A

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

Preview Lab → · Contrast checker → · Palette generator →

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