#7F257C#7F257C

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

Color values

HEX#7F257C
RGBrgb(127, 37, 124)
HSLhsl(302, 55%, 32%)
HSVhsv(302, 71%, 50%)
CMYKcmyk(0%, 70.9%, 2.4%, 50.2%)
CIE-LABlab(32.46, 49.07, -29.73)
CIE-LCHlch(32.46, 57.37, 328.79°)
OKLaboklab(43.88% 0.1382 -0.0821)
OKLCHoklch(43.88% 0.161 329.3)
XYZxyz(13.0519, 7.2914, 19.7848)
Luminance0.0729 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F257C #257F28
analogous
#55257F #7F257C #7F254F
triadic
#7F257C #7C7F25 #257C7F
tetradic
#7F257C #7F5525 #257F28 #254F7F
square
#7F257C #7F5525 #257F28 #254F7F
split-complementary
#7F257C #4F7F25 #257F55
monochromatic
#20091F #50174E #7F257C #AE33AA #CD52C8

Accessibility & contrast

On white

8.54
#7F257C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7F257C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F257C
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F257C#FFFFFF#000000##FFFFFF
##7F257C1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A457E
Deuteranopia (green-blind)
#3E517A
Tritanopia (blue-blind)
#84314D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f257c;
/* rgb */ color: rgb(127, 37, 124);
/* oklch */ color: oklch(43.9% 0.161 329.3);
Tailwind
colors: {
  custom: {
    50: '#a768a2',
    500: '#7f257c',
    950: '#000000',
  },
}
SCSS
$custom: #7f257c;
$custom-light: #a768a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f257c",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 124
  },
  "hsl": {
    "h": 302,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43882,
    "c": 0.16074,
    "h": 329.3
  },
  "luminance": 0.0729
}

Semantic roles & 50–950 ramp

primary
#7F257C
secondary
#4FB152
accent
#DE4F4A
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7F257C

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

Preview Lab → · Contrast checker → · Palette generator →

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