#7F249C#7F249C

#7F249C is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.9% C 0.190 H 316.4°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#7F249C
RGBrgb(127, 36, 156)
HSLhsl(286, 63%, 38%)
HSVhsv(286, 77%, 61%)
CMYKcmyk(18.6%, 76.9%, 0%, 38.8%)
CIE-LABlab(34.34, 55.48, -46.47)
CIE-LCHlch(34.34, 72.37, 320.05°)
OKLaboklab(45.87% 0.1375 -0.1309)
OKLCHoklch(45.87% 0.19 316.4)
XYZxyz(15.3831, 8.1747, 32.2136)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F249C #419C24
analogous
#43249C #7F249C #9C247D
triadic
#7F249C #9C7F24 #249C7F
tetradic
#7F249C #9C4324 #419C24 #247D9C
square
#7F249C #9C4324 #419C24 #247D9C
split-complementary
#7F249C #7D9C24 #249C43
monochromatic
#2E0D39 #57196A #7F249C #A72FCE #BD60DA

Accessibility & contrast

On white

7.97
#7F249C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7F249C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F249C
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F249C#FFFFFF#000000##FFFFFF
##7F249C1.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9F
Deuteranopia (green-blind)
#245399
Tritanopia (blue-blind)
#7D3E5F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f249c;
/* rgb */ color: rgb(127, 36, 156);
/* oklch */ color: oklch(45.9% 0.190 316.4);
Tailwind
colors: {
  custom: {
    50: '#a869ba',
    500: '#7f249c',
    950: '#000000',
  },
}
SCSS
$custom: #7f249c;
$custom-light: #a869ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7f249c",
  "rgb": {
    "r": 127,
    "g": 36,
    "b": 156
  },
  "hsl": {
    "h": 285.5,
    "s": 62.5,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45871,
    "c": 0.18985,
    "h": 316.4
  },
  "luminance": 0.08174
}

Semantic roles & 50–950 ramp

primary
#7F249C
secondary
#74BF5C
accent
#E6426A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F249C

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

Preview Lab → · Contrast checker → · Palette generator →

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