#7F258F#7F258F

#7F258F is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.1% C 0.177 H 321.1°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#7F258F
RGBrgb(127, 37, 143)
HSLhsl(291, 59%, 35%)
HSVhsv(291, 74%, 56%)
CMYKcmyk(11.2%, 74.1%, 0%, 43.9%)
CIE-LABlab(33.60, 52.57, -39.71)
CIE-LCHlch(33.60, 65.88, 322.93°)
OKLaboklab(45.07% 0.1379 -0.1111)
OKLCHoklch(45.07% 0.177 321.1)
XYZxyz(14.3713, 7.8191, 26.7335)
Luminance0.0782 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F258F #358F25
analogous
#4A258F #7F258F #8F256A
triadic
#7F258F #8F7F25 #258F7F
tetradic
#7F258F #8F4A25 #358F25 #256A8F
square
#7F258F #8F4A25 #358F25 #256A8F
split-complementary
#7F258F #6A8F25 #258F4A
monochromatic
#290C2E #54185E #7F258F #AA32C0 #C25AD4

Accessibility & contrast

On white

8.19
#7F258F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7F258F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F258F
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F258F#FFFFFF#000000##FFFFFF
##7F258F1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#31528D
Tritanopia (blue-blind)
#803958
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f258f;
/* rgb */ color: rgb(127, 37, 143);
/* oklch */ color: oklch(45.1% 0.177 321.1);
Tailwind
colors: {
  custom: {
    50: '#a869b0',
    500: '#7f258f',
    950: '#000000',
  },
}
SCSS
$custom: #7f258f;
$custom-light: #a869b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f258f",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 290.943,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.45068,
    "c": 0.17714,
    "h": 321.1
  },
  "luminance": 0.07818
}

Semantic roles & 50–950 ramp

primary
#7F258F
secondary
#66B957
accent
#E2465D
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F258F

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

Preview Lab → · Contrast checker → · Palette generator →

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