#7E2F95#7E2F95

#7E2F95 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.4% C 0.170 H 317.7°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#7E2F95
RGBrgb(126, 47, 149)
HSLhsl(286, 52%, 38%)
HSVhsv(286, 68%, 58%)
CMYKcmyk(15.4%, 68.5%, 0%, 41.6%)
CIE-LABlab(35.28, 49.43, -40.71)
CIE-LCHlch(35.28, 64.04, 320.53°)
OKLaboklab(46.36% 0.1255 -0.1141)
OKLCHoklch(46.36% 0.17 317.7)
XYZxyz(15.0447, 8.6392, 29.3030)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2F95 #46952F
analogous
#4B2F95 #7E2F95 #952F79
triadic
#7E2F95 #957E2F #2F957E
tetradic
#7E2F95 #954B2F #46952F #2F7995
square
#7E2F95 #954B2F #46952F #2F7995
split-complementary
#7E2F95 #79952F #2F954B
monochromatic
#2F1238 #572066 #7E2F95 #A53FC2 #BB6DD1

Accessibility & contrast

On white

7.70
#7E2F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7E2F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2F95
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2F95#FFFFFF#000000##FFFFFF
##7E2F951.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E98
Deuteranopia (green-blind)
#335593
Tritanopia (blue-blind)
#7D425E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e2f95;
/* rgb */ color: rgb(126, 47, 149);
/* oklch */ color: oklch(46.4% 0.170 317.7);
Tailwind
colors: {
  custom: {
    50: '#a76eb5',
    500: '#7e2f95',
    950: '#000000',
  },
}
SCSS
$custom: #7e2f95;
$custom-light: #a76eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2f95",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 286.471,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46359,
    "c": 0.16966,
    "h": 317.7
  },
  "luminance": 0.08639
}

Semantic roles & 50–950 ramp

primary
#7E2F95
secondary
#7AB867
accent
#DB4C6D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7E2F95

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

Preview Lab → · Contrast checker → · Palette generator →

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