#7E25B4#7E25B4

#7E25B4 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.6% C 0.210 H 308.4°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#7E25B4
RGBrgb(126, 37, 180)
HSLhsl(277, 66%, 43%)
HSVhsv(277, 79%, 71%)
CMYKcmyk(30%, 79.4%, 0%, 29.4%)
CIE-LABlab(36.09, 59.94, -58.05)
CIE-LCHlch(36.09, 83.44, 315.92°)
OKLaboklab(47.63% 0.1306 -0.165)
OKLCHoklch(47.63% 0.21 308.4)
XYZxyz(17.5023, 9.0543, 43.9968)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E25B4 #5BB425
analogous
#3725B4 #7E25B4 #B425A2
triadic
#7E25B4 #B47E25 #25B47E
tetradic
#7E25B4 #B43725 #5BB425 #25A2B4
square
#7E25B4 #B43725 #5BB425 #25A2B4
split-complementary
#7E25B4 #A2B425 #25B437
monochromatic
#37104E #5A1B81 #7E25B4 #9E3FD7 #B771E2

Accessibility & contrast

On white

7.47
#7E25B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7E25B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E25B4
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E25B4#FFFFFF#000000##FFFFFF
##7E25B41.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#0056B1
Tritanopia (blue-blind)
#754A6D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e25b4;
/* rgb */ color: rgb(126, 37, 180);
/* oklch */ color: oklch(47.6% 0.210 308.4);
Tailwind
colors: {
  custom: {
    50: '#a96bcb',
    500: '#7e25b4',
    950: '#000000',
  },
}
SCSS
$custom: #7e25b4;
$custom-light: #a96bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e25b4",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 180
  },
  "hsl": {
    "h": 277.343,
    "s": 65.899,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47625,
    "c": 0.21045,
    "h": 308.4
  },
  "luminance": 0.09054
}

Semantic roles & 50–950 ramp

primary
#7E25B4
secondary
#8FC96C
accent
#E93F7F
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E25B4

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

Preview Lab → · Contrast checker → · Palette generator →

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