#7D248E#7D248E

#7D248E is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.6% C 0.177 H 320.7°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#7D248E
RGBrgb(125, 36, 142)
HSLhsl(290, 60%, 35%)
HSVhsv(290, 75%, 56%)
CMYKcmyk(12%, 74.6%, 0%, 44.3%)
CIE-LABlab(33.08, 52.31, -39.95)
CIE-LCHlch(33.08, 65.82, 322.63°)
OKLaboklab(44.61% 0.1366 -0.1119)
OKLCHoklch(44.61% 0.177 320.7)
XYZxyz(13.9702, 7.5755, 26.3123)
Luminance0.0757 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D248E #358E24
analogous
#48248E #7D248E #8E246A
triadic
#7D248E #8E7D24 #248E7D
tetradic
#7D248E #8E4824 #358E24 #246A8E
square
#7D248E #8E4824 #358E24 #246A8E
split-complementary
#7D248E #6A8E24 #248E48
monochromatic
#270B2C #52185D #7D248E #A830BF #C158D5

Accessibility & contrast

On white

8.35
#7D248E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7D248E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D248E
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D248E#FFFFFF#000000##FFFFFF
##7D248E1.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#2F518C
Tritanopia (blue-blind)
#7E3957
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d248e;
/* rgb */ color: rgb(125, 36, 142);
/* oklch */ color: oklch(44.6% 0.177 320.7);
Tailwind
colors: {
  custom: {
    50: '#a668b0',
    500: '#7d248e',
    950: '#000000',
  },
}
SCSS
$custom: #7d248e;
$custom-light: #a668b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d248e",
  "rgb": {
    "r": 125,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 290.377,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44612,
    "c": 0.17653,
    "h": 320.7
  },
  "luminance": 0.07575
}

Semantic roles & 50–950 ramp

primary
#7D248E
secondary
#65B955
accent
#E3455E
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D248E

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

Preview Lab → · Contrast checker → · Palette generator →

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