#7E2974#7E2974

#7E2974 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 43.7% C 0.148 H 332.8°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#7E2974
RGBrgb(126, 41, 116)
HSLhsl(307, 51%, 33%)
HSVhsv(307, 67%, 49%)
CMYKcmyk(0%, 67.5%, 7.9%, 50.6%)
CIE-LABlab(32.44, 45.80, -24.73)
CIE-LCHlch(32.44, 52.05, 331.63°)
OKLaboklab(43.7% 0.1318 -0.0677)
OKLCHoklch(43.7% 0.148 332.8)
XYZxyz(12.5495, 7.2834, 17.2645)
Luminance0.0728 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2974 #297E33
analogous
#5D297E #7E2974 #7E2949
triadic
#7E2974 #747E29 #29747E
tetradic
#7E2974 #7E5D29 #297E33 #29497E
square
#7E2974 #7E5D29 #297E33 #29497E
split-complementary
#7E2974 #497E29 #297E5D
monochromatic
#220B1F #501A49 #7E2974 #AC389F #C959BC

Accessibility & contrast

On white

8.55
#7E2974 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7E2974 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2974
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2974#FFFFFF#000000##FFFFFF
##7E29741.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264476
Deuteranopia (green-blind)
#435172
Tritanopia (blue-blind)
#84304A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e2974;
/* rgb */ color: rgb(126, 41, 116);
/* oklch */ color: oklch(43.7% 0.148 332.8);
Tailwind
colors: {
  custom: {
    50: '#a66a9c',
    500: '#7e2974',
    950: '#000000',
  },
}
SCSS
$custom: #7e2974;
$custom-light: #a66a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2974",
  "rgb": {
    "r": 126,
    "g": 41,
    "b": 116
  },
  "hsl": {
    "h": 307.059,
    "s": 50.898,
    "l": 32.745
  },
  "oklch": {
    "l": 0.43696,
    "c": 0.14813,
    "h": 332.8
  },
  "luminance": 0.07282
}

Semantic roles & 50–950 ramp

primary
#7E2974
secondary
#55AE5F
accent
#DA5E4D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7E2974

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

Preview Lab → · Contrast checker → · Palette generator →

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