#7F248C#7F248C

#7F248C is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.8% C 0.176 H 322.4°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#7F248C
RGBrgb(127, 36, 140)
HSLhsl(293, 59%, 35%)
HSVhsv(293, 74%, 55%)
CMYKcmyk(9.3%, 74.3%, 0%, 45.1%)
CIE-LABlab(33.28, 52.37, -38.38)
CIE-LCHlch(33.28, 64.93, 323.76°)
OKLaboklab(44.78% 0.1391 -0.1072)
OKLCHoklch(44.78% 0.176 322.4)
XYZxyz(14.1164, 7.6680, 25.5424)
Luminance0.0767 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F248C #318C24
analogous
#4B248C #7F248C #8C2465
triadic
#7F248C #8C7F24 #248C7F
tetradic
#7F248C #8C4B24 #318C24 #24658C
square
#7F248C #8C4B24 #318C24 #24658C
split-complementary
#7F248C #658C24 #248C4B
monochromatic
#270B2B #53175B #7F248C #AB31BD #C457D4

Accessibility & contrast

On white

8.29
#7F248C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7F248C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F248C
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F248C#FFFFFF#000000##FFFFFF
##7F248C1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488F
Deuteranopia (green-blind)
#33528A
Tritanopia (blue-blind)
#813756
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f248c;
/* rgb */ color: rgb(127, 36, 140);
/* oklch */ color: oklch(44.8% 0.176 322.4);
Tailwind
colors: {
  custom: {
    50: '#a768ae',
    500: '#7f248c',
    950: '#000000',
  },
}
SCSS
$custom: #7f248c;
$custom-light: #a768ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7f248c",
  "rgb": {
    "r": 127,
    "g": 36,
    "b": 140
  },
  "hsl": {
    "h": 292.5,
    "s": 59.091,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44778,
    "c": 0.17565,
    "h": 322.4
  },
  "luminance": 0.07667
}

Semantic roles & 50–950 ramp

primary
#7F248C
secondary
#60B854
accent
#E24659
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F248C

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

Preview Lab → · Contrast checker → · Palette generator →

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