#7F258D#7F258D

#7F258D is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.9% C 0.175 H 321.9°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#7F258D
RGBrgb(127, 37, 141)
HSLhsl(292, 58%, 35%)
HSVhsv(292, 74%, 55%)
CMYKcmyk(9.9%, 73.8%, 0%, 44.7%)
CIE-LABlab(33.48, 52.18, -38.69)
CIE-LCHlch(33.48, 64.96, 323.45°)
OKLaboklab(44.94% 0.1381 -0.1081)
OKLCHoklch(44.94% 0.175 321.9)
XYZxyz(14.2212, 7.7590, 25.9427)
Luminance0.0776 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F258D #338D25
analogous
#4B258D #7F258D #8D2567
triadic
#7F258D #8D7F25 #258D7F
tetradic
#7F258D #8D4B25 #338D25 #25678D
square
#7F258D #8D4B25 #338D25 #25678D
split-complementary
#7F258D #678D25 #258D4B
monochromatic
#280C2C #53185D #7F258D #AB32BD #C359D3

Accessibility & contrast

On white

8.23
#7F258D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7F258D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F258D
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F258D#FFFFFF#000000##FFFFFF
##7F258D1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#33528B
Tritanopia (blue-blind)
#803857
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f258d;
/* rgb */ color: rgb(127, 37, 141);
/* oklch */ color: oklch(44.9% 0.175 321.9);
Tailwind
colors: {
  custom: {
    50: '#a769af',
    500: '#7f258d',
    950: '#000000',
  },
}
SCSS
$custom: #7f258d;
$custom-light: #a769af;
$custom-dark: #000000;
JSON
{
  "hex": "#7f258d",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 141
  },
  "hsl": {
    "h": 291.923,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44936,
    "c": 0.17536,
    "h": 321.9
  },
  "luminance": 0.07758
}

Semantic roles & 50–950 ramp

primary
#7F258D
secondary
#63B856
accent
#E2465B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F258D

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

Preview Lab → · Contrast checker → · Palette generator →

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