#7F248B#7F248B

#7F248B is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.7% C 0.175 H 322.8°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#7F248B
RGBrgb(127, 36, 139)
HSLhsl(293, 59%, 34%)
HSVhsv(293, 74%, 55%)
CMYKcmyk(8.6%, 74.1%, 0%, 45.5%)
CIE-LABlab(33.22, 52.18, -37.86)
CIE-LCHlch(33.22, 64.47, 324.03°)
OKLaboklab(44.71% 0.1392 -0.1057)
OKLCHoklch(44.71% 0.175 322.8)
XYZxyz(14.0430, 7.6387, 25.1558)
Luminance0.0764 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F248B #308B24
analogous
#4C248B #7F248B #8B2464
triadic
#7F248B #8B7F24 #248B7F
tetradic
#7F248B #8B4C24 #308B24 #24648B
square
#7F248B #8B4C24 #308B24 #24648B
split-complementary
#7F248B #648B24 #248B4C
monochromatic
#260B2A #53175A #7F248B #AB31BC #C556D3

Accessibility & contrast

On white

8.31
#7F248B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F248B
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F248B#FFFFFF#000000##FFFFFF
##7F248B1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#345289
Tritanopia (blue-blind)
#813755
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f248b;
/* rgb */ color: rgb(127, 36, 139);
/* oklch */ color: oklch(44.7% 0.175 322.8);
Tailwind
colors: {
  custom: {
    50: '#a768ad',
    500: '#7f248b',
    950: '#000000',
  },
}
SCSS
$custom: #7f248b;
$custom-light: #a768ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7f248b",
  "rgb": {
    "r": 127,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 293.01,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44712,
    "c": 0.17478,
    "h": 322.8
  },
  "luminance": 0.07638
}

Semantic roles & 50–950 ramp

primary
#7F248B
secondary
#5FB753
accent
#E24658
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F248B

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

Preview Lab → · Contrast checker → · Palette generator →

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