#7E2F74#7E2F74

#7E2F74 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.4% C 0.139 H 332.9°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#7E2F74
RGBrgb(126, 47, 116)
HSLhsl(308, 46%, 34%)
HSVhsv(308, 63%, 49%)
CMYKcmyk(0%, 62.7%, 7.9%, 50.6%)
CIE-LABlab(33.42, 43.11, -23.21)
CIE-LCHlch(33.42, 48.96, 331.71°)
OKLaboklab(44.4% 0.1239 -0.0634)
OKLCHoklch(44.4% 0.139 332.9)
XYZxyz(12.7731, 7.7306, 17.3390)
Luminance0.0773 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2F74 #2F7E39
analogous
#612F7E #7E2F74 #7E2F4D
triadic
#7E2F74 #747E2F #2F747E
tetradic
#7E2F74 #7E612F #2F7E39 #2F4D7E
square
#7E2F74 #7E612F #2F7E39 #2F4D7E
split-complementary
#7E2F74 #4D7E2F #2F7E61
monochromatic
#250E22 #511E4B #7E2F74 #AB409D #C563B8

Accessibility & contrast

On white

8.25
#7E2F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2F74
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2F74#FFFFFF#000000##FFFFFF
##7E2F741.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4776
Deuteranopia (green-blind)
#465372
Tritanopia (blue-blind)
#83354D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2f74;
/* rgb */ color: rgb(126, 47, 116);
/* oklch */ color: oklch(44.4% 0.139 332.9);
Tailwind
colors: {
  custom: {
    50: '#a66d9c',
    500: '#7e2f74',
    950: '#000000',
  },
}
SCSS
$custom: #7e2f74;
$custom-light: #a66d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2f74",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 116
  },
  "hsl": {
    "h": 307.595,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44404,
    "c": 0.13921,
    "h": 332.9
  },
  "luminance": 0.0773
}

Semantic roles & 50–950 ramp

primary
#7E2F74
secondary
#5DAC67
accent
#D56352
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7E2F74

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

Preview Lab → · Contrast checker → · Palette generator →

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