#7A2F8B#7A2F8B

#7A2F8B is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.2% C 0.158 H 319.7°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#7A2F8B
RGBrgb(122, 47, 139)
HSLhsl(289, 49%, 36%)
HSVhsv(289, 66%, 55%)
CMYKcmyk(12.2%, 66.2%, 0%, 45.5%)
CIE-LABlab(34.06, 46.41, -36.57)
CIE-LCHlch(34.06, 59.09, 321.76°)
OKLaboklab(45.16% 0.1207 -0.1022)
OKLCHoklch(45.16% 0.158 319.7)
XYZxyz(13.7022, 8.0353, 25.2503)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2F8B #408B2F
analogous
#4C2F8B #7A2F8B #8B2F6E
triadic
#7A2F8B #8B7A2F #2F8B7A
tetradic
#7A2F8B #8B4C2F #408B2F #2F6E8B
square
#7A2F8B #8B4C2F #408B2F #2F6E8B
split-complementary
#7A2F8B #6E8B2F #2F8B4C
monochromatic
#2A1030 #52205D #7A2F8B #A23EB9 #BA68CC

Accessibility & contrast

On white

8.06
#7A2F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7A2F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2F8B
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2F8B#FFFFFF#000000##FFFFFF
##7A2F8B1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134B8E
Deuteranopia (green-blind)
#365389
Tritanopia (blue-blind)
#7A3F59
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7a2f8b;
/* rgb */ color: rgb(122, 47, 139);
/* oklch */ color: oklch(45.2% 0.158 319.7);
Tailwind
colors: {
  custom: {
    50: '#a36dad',
    500: '#7a2f8b',
    950: '#000000',
  },
}
SCSS
$custom: #7a2f8b;
$custom-light: #a36dad;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2f8b",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 288.913,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45155,
    "c": 0.15813,
    "h": 319.7
  },
  "luminance": 0.08035
}

Semantic roles & 50–950 ramp

primary
#7A2F8B
secondary
#72B363
accent
#D94F68
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7A2F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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