#7F258B#7F258B

#7F258B is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.8% C 0.174 H 322.7°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#7F258B
RGBrgb(127, 37, 139)
HSLhsl(293, 58%, 35%)
HSVhsv(293, 73%, 55%)
CMYKcmyk(8.6%, 73.4%, 0%, 45.5%)
CIE-LABlab(33.35, 51.80, -37.65)
CIE-LCHlch(33.35, 64.04, 323.99°)
OKLaboklab(44.81% 0.1382 -0.1051)
OKLCHoklch(44.81% 0.174 322.7)
XYZxyz(14.0737, 7.7001, 25.1661)
Luminance0.0770 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F258B #318B25
analogous
#4C258B #7F258B #8B2564
triadic
#7F258B #8B7F25 #258B7F
tetradic
#7F258B #8B4C25 #318B25 #25648B
square
#7F258B #8B4C25 #318B25 #25648B
split-complementary
#7F258B #648B25 #258B4C
monochromatic
#270B2A #53185B #7F258B #AB32BB #C458D3

Accessibility & contrast

On white

8.27
#7F258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7F258B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F258B
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F258B#FFFFFF#000000##FFFFFF
##7F258B1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488E
Deuteranopia (green-blind)
#355289
Tritanopia (blue-blind)
#813756
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f258b;
/* rgb */ color: rgb(127, 37, 139);
/* oklch */ color: oklch(44.8% 0.174 322.7);
Tailwind
colors: {
  custom: {
    50: '#a769ad',
    500: '#7f258b',
    950: '#000000',
  },
}
SCSS
$custom: #7f258b;
$custom-light: #a769ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7f258b",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 292.941,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44806,
    "c": 0.17361,
    "h": 322.7
  },
  "luminance": 0.07699
}

Semantic roles & 50–950 ramp

primary
#7F258B
secondary
#60B755
accent
#E14759
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F258B

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

Preview Lab → · Contrast checker → · Palette generator →

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