#7E2495#7E2495

#7E2495 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.2% C 0.183 H 318.5°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#7E2495
RGBrgb(126, 36, 149)
HSLhsl(288, 61%, 36%)
HSVhsv(288, 76%, 58%)
CMYKcmyk(15.4%, 75.8%, 0%, 41.6%)
CIE-LABlab(33.71, 53.89, -43.24)
CIE-LCHlch(33.71, 69.09, 321.26°)
OKLaboklab(45.24% 0.1371 -0.1215)
OKLCHoklch(45.24% 0.183 318.5)
XYZxyz(14.6591, 7.8680, 29.1745)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2495 #3B9524
analogous
#462495 #7E2495 #952474
triadic
#7E2495 #957E24 #24957E
tetradic
#7E2495 #954624 #3B9524 #247495
square
#7E2495 #954624 #3B9524 #247495
split-complementary
#7E2495 #749524 #249546
monochromatic
#2B0C32 #541864 #7E2495 #A830C6 #BE5CD8

Accessibility & contrast

On white

8.16
#7E2495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7E2495 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2495
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2495#FFFFFF#000000##FFFFFF
##7E24951.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A98
Deuteranopia (green-blind)
#2A5292
Tritanopia (blue-blind)
#7E3B5B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2495;
/* rgb */ color: rgb(126, 36, 149);
/* oklch */ color: oklch(45.2% 0.183 318.5);
Tailwind
colors: {
  custom: {
    50: '#a769b5',
    500: '#7e2495',
    950: '#000000',
  },
}
SCSS
$custom: #7e2495;
$custom-light: #a769b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2495",
  "rgb": {
    "r": 126,
    "g": 36,
    "b": 149
  },
  "hsl": {
    "h": 287.788,
    "s": 61.081,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45235,
    "c": 0.18319,
    "h": 318.5
  },
  "luminance": 0.07867
}

Semantic roles & 50–950 ramp

primary
#7E2495
secondary
#6DBC59
accent
#E44464
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2495

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

Preview Lab → · Contrast checker → · Palette generator →

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