#7E2F77#7E2F77

#7E2F77 is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.6% C 0.142 H 331.3°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#7E2F77
RGBrgb(126, 47, 119)
HSLhsl(305, 46%, 34%)
HSVhsv(305, 63%, 49%)
CMYKcmyk(0%, 62.7%, 5.6%, 50.6%)
CIE-LABlab(33.57, 43.64, -24.86)
CIE-LCHlch(33.57, 50.22, 330.33°)
OKLaboklab(44.56% 0.1244 -0.0681)
OKLCHoklch(44.56% 0.142 331.3)
XYZxyz(12.9504, 7.8015, 18.2729)
Luminance0.0780 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2F77 #2F7E36
analogous
#5E2F7E #7E2F77 #7E2F50
triadic
#7E2F77 #777E2F #2F777E
tetradic
#7E2F77 #7E5E2F #2F7E36 #2F507E
square
#7E2F77 #7E5E2F #2F7E36 #2F507E
split-complementary
#7E2F77 #507E2F #2F7E5E
monochromatic
#250E23 #511E4D #7E2F77 #AB40A1 #C563BC

Accessibility & contrast

On white

8.20
#7E2F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7E2F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2F77
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2F77#FFFFFF#000000##FFFFFF
##7E2F771.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4879
Deuteranopia (green-blind)
#455375
Tritanopia (blue-blind)
#83364E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2f77;
/* rgb */ color: rgb(126, 47, 119);
/* oklch */ color: oklch(44.6% 0.142 331.3);
Tailwind
colors: {
  custom: {
    50: '#a66d9e',
    500: '#7e2f77',
    950: '#000000',
  },
}
SCSS
$custom: #7e2f77;
$custom-light: #a66d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2f77",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 119
  },
  "hsl": {
    "h": 305.316,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44563,
    "c": 0.14179,
    "h": 331.3
  },
  "luminance": 0.07801
}

Semantic roles & 50–950 ramp

primary
#7E2F77
secondary
#5DAC64
accent
#D55E52
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7E2F77

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

Preview Lab → · Contrast checker → · Palette generator →

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