#7E2F75#7E2F75

#7E2F75 is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.5% C 0.140 H 332.4°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#7E2F75
RGBrgb(126, 47, 117)
HSLhsl(307, 46%, 34%)
HSVhsv(307, 63%, 49%)
CMYKcmyk(0%, 62.7%, 7.1%, 50.6%)
CIE-LABlab(33.47, 43.29, -23.76)
CIE-LCHlch(33.47, 49.38, 331.24°)
OKLaboklab(44.46% 0.1241 -0.065)
OKLCHoklch(44.46% 0.14 332.4)
XYZxyz(12.8316, 7.7539, 17.6470)
Luminance0.0775 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2F75 #2F7E38
analogous
#602F7E #7E2F75 #7E2F4E
triadic
#7E2F75 #757E2F #2F757E
tetradic
#7E2F75 #7E602F #2F7E38 #2F4E7E
square
#7E2F75 #7E602F #2F7E38 #2F4E7E
split-complementary
#7E2F75 #4E7E2F #2F7E60
monochromatic
#250E22 #511E4C #7E2F75 #AB409E #C563BA

Accessibility & contrast

On white

8.23
#7E2F75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7E2F75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2F75
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2F75#FFFFFF#000000##FFFFFF
##7E2F751.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4777
Deuteranopia (green-blind)
#465373
Tritanopia (blue-blind)
#83364D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2f75;
/* rgb */ color: rgb(126, 47, 117);
/* oklch */ color: oklch(44.5% 0.140 332.4);
Tailwind
colors: {
  custom: {
    50: '#a66d9d',
    500: '#7e2f75',
    950: '#000000',
  },
}
SCSS
$custom: #7e2f75;
$custom-light: #a66d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2f75",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 117
  },
  "hsl": {
    "h": 306.835,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44457,
    "c": 0.14007,
    "h": 332.4
  },
  "luminance": 0.07753
}

Semantic roles & 50–950 ramp

primary
#7E2F75
secondary
#5DAC66
accent
#D56152
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7E2F75

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

Preview Lab → · Contrast checker → · Palette generator →

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