#7E25B6#7E25B6

#7E25B6 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.8% C 0.212 H 307.8°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#7E25B6
RGBrgb(126, 37, 182)
HSLhsl(277, 66%, 43%)
HSVhsv(277, 80%, 71%)
CMYKcmyk(30.8%, 79.7%, 0%, 28.6%)
CIE-LABlab(36.25, 60.37, -58.98)
CIE-LCHlch(36.25, 84.40, 315.67°)
OKLaboklab(47.78% 0.1302 -0.1677)
OKLCHoklch(47.78% 0.212 307.8)
XYZxyz(17.7075, 9.1364, 45.0776)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E25B6 #5DB625
analogous
#3625B6 #7E25B6 #B625A5
triadic
#7E25B6 #B67E25 #25B67E
tetradic
#7E25B6 #B63625 #5DB625 #25A5B6
square
#7E25B6 #B63625 #5DB625 #25A5B6
split-complementary
#7E25B6 #A5B625 #25B636
monochromatic
#381050 #5B1B83 #7E25B6 #9D40D8 #B773E3

Accessibility & contrast

On white

7.43
#7E25B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7E25B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E25B6
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E25B6#FFFFFF#000000##FFFFFF
##7E25B61.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BA
Deuteranopia (green-blind)
#0056B3
Tritanopia (blue-blind)
#754B6E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e25b6;
/* rgb */ color: rgb(126, 37, 182);
/* oklch */ color: oklch(47.8% 0.212 307.8);
Tailwind
colors: {
  custom: {
    50: '#a96bcd',
    500: '#7e25b6',
    950: '#000000',
  },
}
SCSS
$custom: #7e25b6;
$custom-light: #a96bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e25b6",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 182
  },
  "hsl": {
    "h": 276.828,
    "s": 66.21,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47784,
    "c": 0.2123,
    "h": 307.8
  },
  "luminance": 0.09136
}

Semantic roles & 50–950 ramp

primary
#7E25B6
secondary
#91CA6D
accent
#E93F80
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7E25B6

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

Preview Lab → · Contrast checker → · Palette generator →

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