#7E25B2#7E25B2

#7E25B2 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.5% C 0.209 H 308.9°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#7E25B2
RGBrgb(126, 37, 178)
HSLhsl(278, 66%, 42%)
HSVhsv(278, 79%, 70%)
CMYKcmyk(29.2%, 79.2%, 0%, 30.2%)
CIE-LABlab(35.93, 59.51, -57.12)
CIE-LCHlch(35.93, 82.49, 316.18°)
OKLaboklab(47.47% 0.1311 -0.1622)
OKLCHoklch(47.47% 0.209 308.9)
XYZxyz(17.3000, 8.9734, 42.9315)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E25B2 #59B225
analogous
#3725B2 #7E25B2 #B225A0
triadic
#7E25B2 #B27E25 #25B27E
tetradic
#7E25B2 #B23725 #59B225 #25A0B2
square
#7E25B2 #B23725 #59B225 #25A0B2
split-complementary
#7E25B2 #A0B225 #25B237
monochromatic
#36104D #5A1A7F #7E25B2 #9E3DD7 #B870E1

Accessibility & contrast

On white

7.51
#7E25B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E25B2
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E25B2#FFFFFF#000000##FFFFFF
##7E25B21.007.512.797.51
#FFFFFF7.511.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#0056AF
Tritanopia (blue-blind)
#76496C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e25b2;
/* rgb */ color: rgb(126, 37, 178);
/* oklch */ color: oklch(47.5% 0.209 308.9);
Tailwind
colors: {
  custom: {
    50: '#a96bca',
    500: '#7e25b2',
    950: '#000000',
  },
}
SCSS
$custom: #7e25b2;
$custom-light: #a96bca;
$custom-dark: #000000;
JSON
{
  "hex": "#7e25b2",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 178
  },
  "hsl": {
    "h": 277.872,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47468,
    "c": 0.2086,
    "h": 308.9
  },
  "luminance": 0.08973
}

Semantic roles & 50–950 ramp

primary
#7E25B2
secondary
#8DC86B
accent
#E93F7E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E25B2

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

Preview Lab → · Contrast checker → · Palette generator →

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