#7E25B3#7E25B3

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

Color values

HEX#7E25B3
RGBrgb(126, 37, 179)
HSLhsl(278, 66%, 42%)
HSVhsv(278, 79%, 70%)
CMYKcmyk(29.6%, 79.3%, 0%, 29.8%)
CIE-LABlab(36.01, 59.73, -57.59)
CIE-LCHlch(36.01, 82.97, 316.05°)
OKLaboklab(47.55% 0.1309 -0.1636)
OKLCHoklch(47.55% 0.21 308.7)
XYZxyz(17.4008, 9.0137, 43.4622)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E25B3 #5AB325
analogous
#3725B3 #7E25B3 #B325A1
triadic
#7E25B3 #B37E25 #25B37E
tetradic
#7E25B3 #B33725 #5AB325 #25A1B3
square
#7E25B3 #B33725 #5AB325 #25A1B3
split-complementary
#7E25B3 #A1B325 #25B337
monochromatic
#37104E #5A1B80 #7E25B3 #9E3ED7 #B871E2

Accessibility & contrast

On white

7.49
#7E25B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7E25B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E25B3
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E25B3#FFFFFF#000000##FFFFFF
##7E25B31.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B7
Deuteranopia (green-blind)
#0056B0
Tritanopia (blue-blind)
#76496C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e25b3;
/* rgb */ color: rgb(126, 37, 179);
/* oklch */ color: oklch(47.5% 0.210 308.7);
Tailwind
colors: {
  custom: {
    50: '#a96bcb',
    500: '#7e25b3',
    950: '#000000',
  },
}
SCSS
$custom: #7e25b3;
$custom-light: #a96bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e25b3",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 179
  },
  "hsl": {
    "h": 277.606,
    "s": 65.741,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47546,
    "c": 0.20952,
    "h": 308.7
  },
  "luminance": 0.09013
}

Semantic roles & 50–950 ramp

primary
#7E25B3
secondary
#8EC86B
accent
#E93F7E
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E25B3

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

Preview Lab → · Contrast checker → · Palette generator →

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