#7F258A#7F258A

#7F258A is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.7% C 0.173 H 323.2°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#7F258A
RGBrgb(127, 37, 138)
HSLhsl(293, 58%, 34%)
HSVhsv(293, 73%, 54%)
CMYKcmyk(8%, 73.2%, 0%, 45.9%)
CIE-LABlab(33.29, 51.62, -37.13)
CIE-LCHlch(33.29, 63.59, 324.27°)
OKLaboklab(44.74% 0.1382 -0.1036)
OKLCHoklch(44.74% 0.173 323.2)
XYZxyz(14.0010, 7.6710, 24.7830)
Luminance0.0767 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F258A #308A25
analogous
#4D258A #7F258A #8A2563
triadic
#7F258A #8A7F25 #258A7F
tetradic
#7F258A #8A4D25 #308A25 #25638A
square
#7F258A #8A4D25 #308A25 #25638A
split-complementary
#7F258A #638A25 #258A4D
monochromatic
#260B29 #53185A #7F258A #AB32BA #C557D2

Accessibility & contrast

On white

8.29
#7F258A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7F258A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F258A
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F258A#FFFFFF#000000##FFFFFF
##7F258A1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488D
Deuteranopia (green-blind)
#355288
Tritanopia (blue-blind)
#813755
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f258a;
/* rgb */ color: rgb(127, 37, 138);
/* oklch */ color: oklch(44.7% 0.173 323.2);
Tailwind
colors: {
  custom: {
    50: '#a769ad',
    500: '#7f258a',
    950: '#000000',
  },
}
SCSS
$custom: #7f258a;
$custom-light: #a769ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7f258a",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 138
  },
  "hsl": {
    "h": 293.465,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44742,
    "c": 0.17273,
    "h": 323.2
  },
  "luminance": 0.0767
}

Semantic roles & 50–950 ramp

primary
#7F258A
secondary
#5FB754
accent
#E14758
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F258A

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

Preview Lab → · Contrast checker → · Palette generator →

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