#7F248A#7F248A

#7F248A is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.6% C 0.174 H 323.2°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#7F248A
RGBrgb(127, 36, 138)
HSLhsl(294, 59%, 34%)
HSVhsv(294, 74%, 54%)
CMYKcmyk(8%, 73.9%, 0%, 45.9%)
CIE-LABlab(33.16, 51.99, -37.34)
CIE-LCHlch(33.16, 64.01, 324.31°)
OKLaboklab(44.65% 0.1392 -0.1042)
OKLCHoklch(44.65% 0.174 323.2)
XYZxyz(13.9703, 7.6096, 24.7728)
Luminance0.0761 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F248A #2F8A24
analogous
#4C248A #7F248A #8A2462
triadic
#7F248A #8A7F24 #248A7F
tetradic
#7F248A #8A4C24 #2F8A24 #24628A
square
#7F248A #8A4C24 #2F8A24 #24628A
split-complementary
#7F248A #628A24 #248A4C
monochromatic
#260B29 #521759 #7F248A #AC31BB #C556D3

Accessibility & contrast

On white

8.33
#7F248A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7F248A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F248A
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F248A#FFFFFF#000000##FFFFFF
##7F248A1.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f248a;
/* rgb */ color: rgb(127, 36, 138);
/* oklch */ color: oklch(44.6% 0.174 323.2);
Tailwind
colors: {
  custom: {
    50: '#a768ad',
    500: '#7f248a',
    950: '#000000',
  },
}
SCSS
$custom: #7f248a;
$custom-light: #a768ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7f248a",
  "rgb": {
    "r": 127,
    "g": 36,
    "b": 138
  },
  "hsl": {
    "h": 293.529,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.44648,
    "c": 0.17391,
    "h": 323.2
  },
  "luminance": 0.07609
}

Semantic roles & 50–950 ramp

primary
#7F248A
secondary
#5EB753
accent
#E24657
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F248A

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

Preview Lab → · Contrast checker → · Palette generator →

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