#7E2895#7E2895

#7E2895 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.6% C 0.179 H 318.2°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#7E2895
RGBrgb(126, 40, 149)
HSLhsl(287, 58%, 37%)
HSVhsv(287, 73%, 58%)
CMYKcmyk(15.4%, 73.2%, 0%, 41.6%)
CIE-LABlab(34.24, 52.37, -42.38)
CIE-LCHlch(34.24, 67.37, 321.02°)
OKLaboklab(45.61% 0.1332 -0.119)
OKLCHoklch(45.61% 0.179 318.2)
XYZxyz(14.7870, 8.1238, 29.2171)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2895 #3F9528
analogous
#472895 #7E2895 #952876
triadic
#7E2895 #957E28 #28957E
tetradic
#7E2895 #954728 #3F9528 #287695
square
#7E2895 #954728 #3F9528 #287695
split-complementary
#7E2895 #769528 #289547
monochromatic
#2C0E35 #551B65 #7E2895 #A735C5 #BD62D5

Accessibility & contrast

On white

8.00
#7E2895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7E2895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2895
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2895#FFFFFF#000000##FFFFFF
##7E28951.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B98
Deuteranopia (green-blind)
#2D5393
Tritanopia (blue-blind)
#7D3E5C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2895;
/* rgb */ color: rgb(126, 40, 149);
/* oklch */ color: oklch(45.6% 0.179 318.2);
Tailwind
colors: {
  custom: {
    50: '#a76bb5',
    500: '#7e2895',
    950: '#000000',
  },
}
SCSS
$custom: #7e2895;
$custom-light: #a76bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2895",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 287.339,
    "s": 57.672,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45614,
    "c": 0.17858,
    "h": 318.2
  },
  "luminance": 0.08123
}

Semantic roles & 50–950 ramp

primary
#7E2895
secondary
#72BB5E
accent
#E14767
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2895

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

Preview Lab → · Contrast checker → · Palette generator →

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