#7F258E#7F258E

#7F258E is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.176 H 321.5°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#7F258E
RGBrgb(127, 37, 142)
HSLhsl(291, 59%, 35%)
HSVhsv(291, 74%, 56%)
CMYKcmyk(10.6%, 73.9%, 0%, 44.3%)
CIE-LABlab(33.54, 52.37, -39.20)
CIE-LCHlch(33.54, 65.42, 323.19°)
OKLaboklab(45% 0.138 -0.1096)
OKLCHoklch(45% 0.176 321.5)
XYZxyz(14.2959, 7.7889, 26.3363)
Luminance0.0779 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F258E #348E25
analogous
#4B258E #7F258E #8E2568
triadic
#7F258E #8E7F25 #258E7F
tetradic
#7F258E #8E4B25 #348E25 #25688E
square
#7F258E #8E4B25 #348E25 #25688E
split-complementary
#7F258E #688E25 #258E4B
monochromatic
#280C2D #54185D #7F258E #AA32BF #C25AD4

Accessibility & contrast

On white

8.21
#7F258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F258E
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F258E#FFFFFF#000000##FFFFFF
##7F258E1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#32528C
Tritanopia (blue-blind)
#803957
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f258e;
/* rgb */ color: rgb(127, 37, 142);
/* oklch */ color: oklch(45.0% 0.176 321.5);
Tailwind
colors: {
  custom: {
    50: '#a769b0',
    500: '#7f258e',
    950: '#000000',
  },
}
SCSS
$custom: #7f258e;
$custom-light: #a769b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f258e",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 291.429,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45002,
    "c": 0.17625,
    "h": 321.5
  },
  "luminance": 0.07788
}

Semantic roles & 50–950 ramp

primary
#7F258E
secondary
#64B956
accent
#E2465C
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F258E

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

Preview Lab → · Contrast checker → · Palette generator →

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