#7A2F97#7A2F97

#7A2F97 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.9% C 0.170 H 315.0°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#7A2F97
RGBrgb(122, 47, 151)
HSLhsl(283, 53%, 39%)
HSVhsv(283, 69%, 59%)
CMYKcmyk(19.2%, 68.9%, 0%, 40.8%)
CIE-LABlab(34.81, 48.92, -42.71)
CIE-LCHlch(34.81, 64.94, 318.88°)
OKLaboklab(45.94% 0.1202 -0.1201)
OKLCHoklch(45.94% 0.17 315)
XYZxyz(14.6276, 8.4055, 30.1240)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2F97 #4C972F
analogous
#462F97 #7A2F97 #972F80
triadic
#7A2F97 #977A2F #2F977A
tetradic
#7A2F97 #97462F #4C972F #2F8097
square
#7A2F97 #97462F #4C972F #2F8097
split-complementary
#7A2F97 #80972F #2F9746
monochromatic
#2F123A #542068 #7A2F97 #9F40C3 #B66ED2

Accessibility & contrast

On white

7.83
#7A2F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7A2F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2F97
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2F97#FFFFFF#000000##FFFFFF
##7A2F971.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#2C5495
Tritanopia (blue-blind)
#78435F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7a2f97;
/* rgb */ color: rgb(122, 47, 151);
/* oklch */ color: oklch(45.9% 0.170 315.0);
Tailwind
colors: {
  custom: {
    50: '#a46eb6',
    500: '#7a2f97',
    950: '#000000',
  },
}
SCSS
$custom: #7a2f97;
$custom-light: #a46eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2f97",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 283.269,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.45942,
    "c": 0.16997,
    "h": 315
  },
  "luminance": 0.08405
}

Semantic roles & 50–950 ramp

primary
#7A2F97
secondary
#7FB968
accent
#DC4C74
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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