#7F249D#7F249D

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

Color values

HEX#7F249D
RGBrgb(127, 36, 157)
HSLhsl(285, 63%, 38%)
HSVhsv(285, 77%, 62%)
CMYKcmyk(19.1%, 77.1%, 0%, 38.4%)
CIE-LABlab(34.41, 55.68, -46.96)
CIE-LCHlch(34.41, 72.84, 319.86°)
OKLaboklab(45.94% 0.1374 -0.1324)
OKLCHoklch(45.94% 0.191 316.1)
XYZxyz(15.4681, 8.2087, 32.6614)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F249D #429D24
analogous
#42249D #7F249D #9D247E
triadic
#7F249D #9D7F24 #249D7F
tetradic
#7F249D #9D4224 #429D24 #247E9D
square
#7F249D #9D4224 #429D24 #247E9D
split-complementary
#7F249D #7E9D24 #249D42
monochromatic
#2E0D39 #57196B #7F249D #A72FCF #BC61DB

Accessibility & contrast

On white

7.95
#7F249D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7F249D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F249D
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F249D#FFFFFF#000000##FFFFFF
##7F249D1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA0
Deuteranopia (green-blind)
#22539A
Tritanopia (blue-blind)
#7D3F5F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f249d;
/* rgb */ color: rgb(127, 36, 157);
/* oklch */ color: oklch(45.9% 0.191 316.1);
Tailwind
colors: {
  custom: {
    50: '#a869bb',
    500: '#7f249d',
    950: '#000000',
  },
}
SCSS
$custom: #7f249d;
$custom-light: #a869bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f249d",
  "rgb": {
    "r": 127,
    "g": 36,
    "b": 157
  },
  "hsl": {
    "h": 285.124,
    "s": 62.694,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45942,
    "c": 0.19075,
    "h": 316.1
  },
  "luminance": 0.08208
}

Semantic roles & 50–950 ramp

primary
#7F249D
secondary
#75C05D
accent
#E6426B
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F249D

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

Preview Lab → · Contrast checker → · Palette generator →

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