#7E25B1#7E25B1

#7E25B1 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.4% C 0.208 H 309.2°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#7E25B1
RGBrgb(126, 37, 177)
HSLhsl(278, 65%, 42%)
HSVhsv(278, 79%, 69%)
CMYKcmyk(28.8%, 79.1%, 0%, 30.6%)
CIE-LABlab(35.86, 59.30, -56.65)
CIE-LCHlch(35.86, 82.01, 316.31°)
OKLaboklab(47.39% 0.1314 -0.1609)
OKLCHoklch(47.39% 0.208 309.2)
XYZxyz(17.1999, 8.9334, 42.4047)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E25B1 #58B125
analogous
#3825B1 #7E25B1 #B1259E
triadic
#7E25B1 #B17E25 #25B17E
tetradic
#7E25B1 #B13825 #58B125 #259EB1
square
#7E25B1 #B13825 #58B125 #259EB1
split-complementary
#7E25B1 #9EB125 #25B138
monochromatic
#36104C #5A1A7E #7E25B1 #9E3DD6 #B86FE1

Accessibility & contrast

On white

7.54
#7E25B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7E25B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E25B1
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E25B1#FFFFFF#000000##FFFFFF
##7E25B11.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B5
Deuteranopia (green-blind)
#0055AE
Tritanopia (blue-blind)
#76496B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e25b1;
/* rgb */ color: rgb(126, 37, 177);
/* oklch */ color: oklch(47.4% 0.208 309.2);
Tailwind
colors: {
  custom: {
    50: '#a96bc9',
    500: '#7e25b1',
    950: '#000000',
  },
}
SCSS
$custom: #7e25b1;
$custom-light: #a96bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e25b1",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 177
  },
  "hsl": {
    "h": 278.143,
    "s": 65.421,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47389,
    "c": 0.20767,
    "h": 309.2
  },
  "luminance": 0.08933
}

Semantic roles & 50–950 ramp

primary
#7E25B1
secondary
#8CC86A
accent
#E83F7D
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E25B1

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

Preview Lab → · Contrast checker → · Palette generator →

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