#7F248F#7F248F

#7F248F is a dark, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.178 H 321.2°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#7F248F
RGBrgb(127, 36, 143)
HSLhsl(291, 60%, 35%)
HSVhsv(291, 75%, 56%)
CMYKcmyk(11.2%, 74.8%, 0%, 43.9%)
CIE-LABlab(33.47, 52.94, -39.92)
CIE-LCHlch(33.47, 66.30, 322.98°)
OKLaboklab(44.98% 0.1389 -0.1117)
OKLCHoklch(44.98% 0.178 321.2)
XYZxyz(14.3406, 7.7577, 26.7233)
Luminance0.0776 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F248F #348F24
analogous
#49248F #7F248F #8F246A
triadic
#7F248F #8F7F24 #248F7F
tetradic
#7F248F #8F4924 #348F24 #246A8F
square
#7F248F #8F4924 #348F24 #246A8F
split-complementary
#7F248F #6A8F24 #248F49
monochromatic
#280B2D #54185E #7F248F #AA30C0 #C258D5

Accessibility & contrast

On white

8.23
#7F248F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7F248F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F248F
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F248F#FFFFFF#000000##FFFFFF
##7F248F1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#31528D
Tritanopia (blue-blind)
#803958
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f248f;
/* rgb */ color: rgb(127, 36, 143);
/* oklch */ color: oklch(45.0% 0.178 321.2);
Tailwind
colors: {
  custom: {
    50: '#a869b0',
    500: '#7f248f',
    950: '#000000',
  },
}
SCSS
$custom: #7f248f;
$custom-light: #a869b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f248f",
  "rgb": {
    "r": 127,
    "g": 36,
    "b": 143
  },
  "hsl": {
    "h": 291.028,
    "s": 59.777,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44975,
    "c": 0.17828,
    "h": 321.2
  },
  "luminance": 0.07757
}

Semantic roles & 50–950 ramp

primary
#7F248F
secondary
#64B955
accent
#E3455C
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F248F

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

Preview Lab → · Contrast checker → · Palette generator →

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