#7E249B#7E249B

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

Color values

HEX#7E249B
RGBrgb(126, 36, 155)
HSLhsl(285, 62%, 37%)
HSVhsv(285, 77%, 61%)
CMYKcmyk(18.7%, 76.8%, 0%, 39.2%)
CIE-LABlab(34.12, 55.08, -46.23)
CIE-LCHlch(34.12, 71.91, 319.99°)
OKLaboklab(45.66% 0.1364 -0.1303)
OKLCHoklch(45.66% 0.189 316.3)
XYZxyz(15.1505, 8.0645, 31.7625)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E249B #419B24
analogous
#42249B #7E249B #9B247D
triadic
#7E249B #9B7E24 #249B7E
tetradic
#7E249B #9B4224 #419B24 #247D9B
square
#7E249B #9B4224 #419B24 #247D9B
split-complementary
#7E249B #7D9B24 #249B42
monochromatic
#2D0D38 #561869 #7E249B #A630CD #BC5FDA

Accessibility & contrast

On white

8.04
#7E249B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7E249B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E249B
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E249B#FFFFFF#000000##FFFFFF
##7E249B1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9E
Deuteranopia (green-blind)
#235398
Tritanopia (blue-blind)
#7C3E5E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e249b;
/* rgb */ color: rgb(126, 36, 155);
/* oklch */ color: oklch(45.7% 0.189 316.3);
Tailwind
colors: {
  custom: {
    50: '#a769b9',
    500: '#7e249b',
    950: '#000000',
  },
}
SCSS
$custom: #7e249b;
$custom-light: #a769b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e249b",
  "rgb": {
    "r": 126,
    "g": 36,
    "b": 155
  },
  "hsl": {
    "h": 285.378,
    "s": 62.304,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45657,
    "c": 0.18858,
    "h": 316.3
  },
  "luminance": 0.08064
}

Semantic roles & 50–950 ramp

primary
#7E249B
secondary
#74BF5C
accent
#E5426A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E249B

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

Preview Lab → · Contrast checker → · Palette generator →

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