#7E2695#7E2695

#7E2695 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.4% C 0.181 H 318.3°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#7E2695
RGBrgb(126, 38, 149)
HSLhsl(288, 59%, 37%)
HSVhsv(288, 74%, 58%)
CMYKcmyk(15.4%, 74.5%, 0%, 41.6%)
CIE-LABlab(33.97, 53.14, -42.82)
CIE-LCHlch(33.97, 68.25, 321.14°)
OKLaboklab(45.42% 0.1352 -0.1203)
OKLCHoklch(45.42% 0.181 318.3)
XYZxyz(14.7214, 7.9924, 29.1952)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2695 #3D9526
analogous
#472695 #7E2695 #952675
triadic
#7E2695 #957E26 #26957E
tetradic
#7E2695 #954726 #3D9526 #267595
square
#7E2695 #954726 #3D9526 #267595
split-complementary
#7E2695 #759526 #269547
monochromatic
#2C0D33 #551A64 #7E2695 #A732C6 #BE5FD6

Accessibility & contrast

On white

8.08
#7E2695 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7E2695 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2695
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2695#FFFFFF#000000##FFFFFF
##7E26951.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A98
Deuteranopia (green-blind)
#2C5392
Tritanopia (blue-blind)
#7D3D5B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2695;
/* rgb */ color: rgb(126, 38, 149);
/* oklch */ color: oklch(45.4% 0.181 318.3);
Tailwind
colors: {
  custom: {
    50: '#a76ab5',
    500: '#7e2695',
    950: '#000000',
  },
}
SCSS
$custom: #7e2695;
$custom-light: #a76ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2695",
  "rgb": {
    "r": 126,
    "g": 38,
    "b": 149
  },
  "hsl": {
    "h": 287.568,
    "s": 59.358,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4542,
    "c": 0.18093,
    "h": 318.3
  },
  "luminance": 0.07992
}

Semantic roles & 50–950 ramp

primary
#7E2695
secondary
#6FBB5B
accent
#E34566
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2695

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

Preview Lab → · Contrast checker → · Palette generator →

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