#7E25A2#7E25A2

#7E25A2 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.3% C 0.194 H 313.9°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#7E25A2
RGBrgb(126, 37, 162)
HSLhsl(283, 63%, 39%)
HSVhsv(283, 77%, 64%)
CMYKcmyk(22.2%, 77.2%, 0%, 36.5%)
CIE-LABlab(34.74, 56.15, -49.47)
CIE-LCHlch(34.74, 74.83, 318.62°)
OKLaboklab(46.25% 0.1344 -0.1398)
OKLCHoklch(46.25% 0.194 313.9)
XYZxyz(15.7862, 8.3679, 34.9590)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E25A2 #49A225
analogous
#4025A2 #7E25A2 #A22588
triadic
#7E25A2 #A27E25 #25A27E
tetradic
#7E25A2 #A24025 #49A225 #2588A2
square
#7E25A2 #A24025 #49A225 #2588A2
split-complementary
#7E25A2 #88A225 #25A240
monochromatic
#310E3E #571A70 #7E25A2 #A334D1 #BA65DC

Accessibility & contrast

On white

7.86
#7E25A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7E25A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E25A2
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E25A2#FFFFFF#000000##FFFFFF
##7E25A21.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#1A549F
Tritanopia (blue-blind)
#7A4263
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e25a2;
/* rgb */ color: rgb(126, 37, 162);
/* oklch */ color: oklch(46.3% 0.194 313.9);
Tailwind
colors: {
  custom: {
    50: '#a86abe',
    500: '#7e25a2',
    950: '#000000',
  },
}
SCSS
$custom: #7e25a2;
$custom-light: #a86abe;
$custom-dark: #000000;
JSON
{
  "hex": "#7e25a2",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 162
  },
  "hsl": {
    "h": 282.72,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46252,
    "c": 0.19388,
    "h": 313.9
  },
  "luminance": 0.08367
}

Semantic roles & 50–950 ramp

primary
#7E25A2
secondary
#7DC261
accent
#E64271
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E25A2

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

Preview Lab → · Contrast checker → · Palette generator →

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