#7F248D#7F248D

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

Color values

HEX#7F248D
RGBrgb(127, 36, 141)
HSLhsl(292, 59%, 35%)
HSVhsv(292, 74%, 55%)
CMYKcmyk(9.9%, 74.5%, 0%, 44.7%)
CIE-LABlab(33.35, 52.56, -38.89)
CIE-LCHlch(33.35, 65.38, 323.50°)
OKLaboklab(44.84% 0.1391 -0.1087)
OKLCHoklch(44.84% 0.177 322)
XYZxyz(14.1905, 7.6977, 25.9325)
Luminance0.0770 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F248D #328D24
analogous
#4B248D #7F248D #8D2467
triadic
#7F248D #8D7F24 #248D7F
tetradic
#7F248D #8D4B24 #328D24 #24678D
square
#7F248D #8D4B24 #328D24 #24678D
split-complementary
#7F248D #678D24 #248D4B
monochromatic
#270B2B #53185C #7F248D #AB30BE #C457D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F248D#FFFFFF#000000##FFFFFF
##7F248D1.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)
#004890
Deuteranopia (green-blind)
#32528B
Tritanopia (blue-blind)
#803856
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f248d;
/* rgb */ color: rgb(127, 36, 141);
/* oklch */ color: oklch(44.8% 0.177 322.0);
Tailwind
colors: {
  custom: {
    50: '#a869af',
    500: '#7f248d',
    950: '#000000',
  },
}
SCSS
$custom: #7f248d;
$custom-light: #a869af;
$custom-dark: #000000;
JSON
{
  "hex": "#7f248d",
  "rgb": {
    "r": 127,
    "g": 36,
    "b": 141
  },
  "hsl": {
    "h": 292,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44843,
    "c": 0.17653,
    "h": 322
  },
  "luminance": 0.07697
}

Semantic roles & 50–950 ramp

primary
#7F248D
secondary
#62B854
accent
#E3455A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F248D

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

Preview Lab → · Contrast checker → · Palette generator →

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