#7A2F9A#7A2F9A

#7A2F9A is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.1% C 0.173 H 313.9°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#7A2F9A
RGBrgb(122, 47, 154)
HSLhsl(282, 53%, 39%)
HSVhsv(282, 69%, 60%)
CMYKcmyk(20.8%, 69.5%, 0%, 39.6%)
CIE-LABlab(35.01, 49.57, -44.22)
CIE-LCHlch(35.01, 66.42, 318.26°)
OKLaboklab(46.15% 0.12 -0.1245)
OKLCHoklch(46.15% 0.173 313.9)
XYZxyz(14.8743, 8.5042, 31.4235)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2F9A #4F9A2F
analogous
#452F9A #7A2F9A #9A2F85
triadic
#7A2F9A #9A7A2F #2F9A7A
tetradic
#7A2F9A #9A452F #4F9A2F #2F859A
square
#7A2F9A #9A452F #4F9A2F #2F859A
split-complementary
#7A2F9A #859A2F #2F9A45
monochromatic
#30123C #55216B #7A2F9A #9E41C5 #B670D3

Accessibility & contrast

On white

7.78
#7A2F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7A2F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2F9A
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2F9A#FFFFFF#000000##FFFFFF
##7A2F9A1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9D
Deuteranopia (green-blind)
#295498
Tritanopia (blue-blind)
#774561
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7a2f9a;
/* rgb */ color: rgb(122, 47, 154);
/* oklch */ color: oklch(46.1% 0.173 313.9);
Tailwind
colors: {
  custom: {
    50: '#a46eb8',
    500: '#7a2f9a',
    950: '#000000',
  },
}
SCSS
$custom: #7a2f9a;
$custom-light: #a46eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2f9a",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 154
  },
  "hsl": {
    "h": 282.056,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46148,
    "c": 0.17297,
    "h": 313.9
  },
  "luminance": 0.08504
}

Semantic roles & 50–950 ramp

primary
#7A2F9A
secondary
#82BB6A
accent
#DD4B77
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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