#7A2F74#7A2F74

#7A2F74 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 43.8% C 0.137 H 330.8°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#7A2F74
RGBrgb(122, 47, 116)
HSLhsl(305, 44%, 33%)
HSVhsv(305, 61%, 48%)
CMYKcmyk(0%, 61.5%, 4.9%, 52.2%)
CIE-LABlab(32.77, 41.96, -24.26)
CIE-LCHlch(32.77, 48.47, 329.97°)
OKLaboklab(43.81% 0.1192 -0.0665)
OKLCHoklch(43.81% 0.137 330.8)
XYZxyz(12.1949, 7.4324, 17.3119)
Luminance0.0743 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2F74 #2F7A35
analogous
#5A2F7A #7A2F74 #7A2F4E
triadic
#7A2F74 #747A2F #2F747A
tetradic
#7A2F74 #7A5A2F #2F7A35 #2F4E7A
square
#7A2F74 #7A5A2F #2F7A35 #2F4E7A
split-complementary
#7A2F74 #4E7A2F #2F7A5A
monochromatic
#220D20 #4E1E4A #7A2F74 #A6409E #C261BA

Accessibility & contrast

On white

8.45
#7A2F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7A2F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2F74
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2F74#FFFFFF#000000##FFFFFF
##7A2F741.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4676
Deuteranopia (green-blind)
#435172
Tritanopia (blue-blind)
#7F364D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7a2f74;
/* rgb */ color: rgb(122, 47, 116);
/* oklch */ color: oklch(43.8% 0.137 330.8);
Tailwind
colors: {
  custom: {
    50: '#a36c9c',
    500: '#7a2f74',
    950: '#000000',
  },
}
SCSS
$custom: #7a2f74;
$custom-light: #a36c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2f74",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 116
  },
  "hsl": {
    "h": 304.8,
    "s": 44.379,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43805,
    "c": 0.13652,
    "h": 330.8
  },
  "luminance": 0.07432
}

Semantic roles & 50–950 ramp

primary
#7A2F74
secondary
#5CA962
accent
#D45E54
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#0F070E
muted
#7F7A7E

Preview Lab

Preview with #7A2F74

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

Preview Lab → · Contrast checker → · Palette generator →

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