#7F249B#7F249B

#7F249B is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.8% C 0.189 H 316.8°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#7F249B
RGBrgb(127, 36, 155)
HSLhsl(286, 62%, 37%)
HSVhsv(286, 77%, 61%)
CMYKcmyk(18.1%, 76.8%, 0%, 39.2%)
CIE-LABlab(34.27, 55.28, -45.97)
CIE-LCHlch(34.27, 71.90, 320.25°)
OKLaboklab(45.8% 0.1376 -0.1295)
OKLCHoklch(45.8% 0.189 316.8)
XYZxyz(15.2988, 8.1410, 31.7695)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F249B #409B24
analogous
#43249B #7F249B #9B247C
triadic
#7F249B #9B7F24 #249B7F
tetradic
#7F249B #9B4324 #409B24 #247C9B
square
#7F249B #9B4324 #409B24 #247C9B
split-complementary
#7F249B #7C9B24 #249B43
monochromatic
#2E0D38 #561869 #7F249B #A830CD #BD5FDA

Accessibility & contrast

On white

7.99
#7F249B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F249B
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F249B#FFFFFF#000000##FFFFFF
##7F249B1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9E
Deuteranopia (green-blind)
#255398
Tritanopia (blue-blind)
#7D3E5E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f249b;
/* rgb */ color: rgb(127, 36, 155);
/* oklch */ color: oklch(45.8% 0.189 316.8);
Tailwind
colors: {
  custom: {
    50: '#a869b9',
    500: '#7f249b',
    950: '#000000',
  },
}
SCSS
$custom: #7f249b;
$custom-light: #a869b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f249b",
  "rgb": {
    "r": 127,
    "g": 36,
    "b": 155
  },
  "hsl": {
    "h": 285.882,
    "s": 62.304,
    "l": 37.451
  },
  "oklch": {
    "l": 0.458,
    "c": 0.18896,
    "h": 316.8
  },
  "luminance": 0.0814
}

Semantic roles & 50–950 ramp

primary
#7F249B
secondary
#73BF5C
accent
#E54269
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F249B

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

Preview Lab → · Contrast checker → · Palette generator →

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