#7E259C#7E259C

#7E259C is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.8% C 0.188 H 315.9°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#7E259C
RGBrgb(126, 37, 156)
HSLhsl(285, 62%, 38%)
HSVhsv(285, 76%, 61%)
CMYKcmyk(19.2%, 76.3%, 0%, 38.8%)
CIE-LABlab(34.31, 54.92, -46.52)
CIE-LCHlch(34.31, 71.98, 319.73°)
OKLaboklab(45.82% 0.1353 -0.1311)
OKLCHoklch(45.82% 0.188 315.9)
XYZxyz(15.2656, 8.1597, 32.2169)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E259C #439C25
analogous
#42259C #7E259C #9C257E
triadic
#7E259C #9C7E25 #259C7E
tetradic
#7E259C #9C4225 #439C25 #257E9C
square
#7E259C #9C4225 #439C25 #257E9C
split-complementary
#7E259C #7E9C25 #259C42
monochromatic
#2E0E39 #56196B #7E259C #A631CD #BB62DA

Accessibility & contrast

On white

7.98
#7E259C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7E259C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E259C
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E259C#FFFFFF#000000##FFFFFF
##7E259C1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9F
Deuteranopia (green-blind)
#235399
Tritanopia (blue-blind)
#7C3F5F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e259c;
/* rgb */ color: rgb(126, 37, 156);
/* oklch */ color: oklch(45.8% 0.188 315.9);
Tailwind
colors: {
  custom: {
    50: '#a769ba',
    500: '#7e259c',
    950: '#000000',
  },
}
SCSS
$custom: #7e259c;
$custom-light: #a769ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7e259c",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 156
  },
  "hsl": {
    "h": 284.874,
    "s": 61.658,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45818,
    "c": 0.18841,
    "h": 315.9
  },
  "luminance": 0.08159
}

Semantic roles & 50–950 ramp

primary
#7E259C
secondary
#76BF5E
accent
#E5436C
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E259C

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

Preview Lab → · Contrast checker → · Palette generator →

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