#7A2F9F#7A2F9F

#7A2F9F is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.5% C 0.178 H 312.2°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#7A2F9F
RGBrgb(122, 47, 159)
HSLhsl(280, 54%, 40%)
HSVhsv(280, 70%, 62%)
CMYKcmyk(23.3%, 70.4%, 0%, 37.6%)
CIE-LABlab(35.35, 50.65, -46.70)
CIE-LCHlch(35.35, 68.90, 317.32°)
OKLaboklab(46.5% 0.1196 -0.1318)
OKLCHoklch(46.5% 0.178 312.2)
XYZxyz(15.2994, 8.6742, 33.6625)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2F9F #549F2F
analogous
#422F9F #7A2F9F #9F2F8C
triadic
#7A2F9F #9F7A2F #2F9F7A
tetradic
#7A2F9F #9F422F #549F2F #2F8C9F
square
#7A2F9F #9F422F #549F2F #2F8C9F
split-complementary
#7A2F9F #8C9F2F #2F9F42
monochromatic
#321341 #562170 #7A2F9F #9C44C8 #B573D6

Accessibility & contrast

On white

7.68
#7A2F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7A2F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2F9F
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2F9F#FFFFFF#000000##FFFFFF
##7A2F9F1.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA2
Deuteranopia (green-blind)
#23559D
Tritanopia (blue-blind)
#764763
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7a2f9f;
/* rgb */ color: rgb(122, 47, 159);
/* oklch */ color: oklch(46.5% 0.178 312.2);
Tailwind
colors: {
  custom: {
    50: '#a46ebc',
    500: '#7a2f9f',
    950: '#000000',
  },
}
SCSS
$custom: #7a2f9f;
$custom-light: #a46ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2f9f",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 280.179,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46497,
    "c": 0.17797,
    "h": 312.2
  },
  "luminance": 0.08674
}

Semantic roles & 50–950 ramp

primary
#7A2F9F
secondary
#87BD6D
accent
#DE4A7B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7A2F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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