#7E259B#7E259B

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

Color values

HEX#7E259B
RGBrgb(126, 37, 155)
HSLhsl(285, 61%, 38%)
HSVhsv(285, 76%, 61%)
CMYKcmyk(18.7%, 76.1%, 0%, 39.2%)
CIE-LABlab(34.24, 54.72, -46.03)
CIE-LCHlch(34.24, 71.50, 319.93°)
OKLaboklab(45.75% 0.1354 -0.1297)
OKLCHoklch(45.75% 0.188 316.2)
XYZxyz(15.1812, 8.1259, 31.7728)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E259B #429B25
analogous
#43259B #7E259B #9B257D
triadic
#7E259B #9B7E25 #259B7E
tetradic
#7E259B #9B4325 #429B25 #257D9B
square
#7E259B #9B4325 #429B25 #257D9B
split-complementary
#7E259B #7D9B25 #259B43
monochromatic
#2E0D38 #56196A #7E259B #A631CC #BC61D9

Accessibility & contrast

On white

8.00
#7E259B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E259B
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E259B#FFFFFF#000000##FFFFFF
##7E259B1.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e259b;
/* rgb */ color: rgb(126, 37, 155);
/* oklch */ color: oklch(45.7% 0.188 316.2);
Tailwind
colors: {
  custom: {
    50: '#a769b9',
    500: '#7e259b',
    950: '#000000',
  },
}
SCSS
$custom: #7e259b;
$custom-light: #a769b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e259b",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 155
  },
  "hsl": {
    "h": 285.254,
    "s": 61.458,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45746,
    "c": 0.18751,
    "h": 316.2
  },
  "luminance": 0.08125
}

Semantic roles & 50–950 ramp

primary
#7E259B
secondary
#75BF5D
accent
#E5436B
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E259B

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

Preview Lab → · Contrast checker → · Palette generator →

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