#7A2D94#7A2D94

#7A2D94 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.5% C 0.170 H 316.3°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#7A2D94
RGBrgb(122, 45, 148)
HSLhsl(285, 53%, 38%)
HSVhsv(285, 70%, 58%)
CMYKcmyk(17.6%, 69.6%, 0%, 42%)
CIE-LABlab(34.30, 49.18, -41.71)
CIE-LCHlch(34.30, 64.48, 319.70°)
OKLaboklab(45.51% 0.1227 -0.1172)
OKLCHoklch(45.51% 0.17 316.3)
XYZxyz(14.3089, 8.1530, 28.8312)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2D94 #47942D
analogous
#462D94 #7A2D94 #942D7B
triadic
#7A2D94 #947A2D #2D947A
tetradic
#7A2D94 #94462D #47942D #2D7B94
square
#7A2D94 #94462D #47942D #2D7B94
split-complementary
#7A2D94 #7B942D #2D9446
monochromatic
#2D1036 #531F65 #7A2D94 #A13BC3 #B76AD2

Accessibility & contrast

On white

7.98
#7A2D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7A2D94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2D94
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2D94#FFFFFF#000000##FFFFFF
##7A2D941.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C97
Deuteranopia (green-blind)
#2D5392
Tritanopia (blue-blind)
#78415D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a2d94;
/* rgb */ color: rgb(122, 45, 148);
/* oklch */ color: oklch(45.5% 0.170 316.3);
Tailwind
colors: {
  custom: {
    50: '#a46cb4',
    500: '#7a2d94',
    950: '#000000',
  },
}
SCSS
$custom: #7a2d94;
$custom-light: #a46cb4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2d94",
  "rgb": {
    "r": 122,
    "g": 45,
    "b": 148
  },
  "hsl": {
    "h": 284.854,
    "s": 53.368,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45511,
    "c": 0.16968,
    "h": 316.3
  },
  "luminance": 0.08152
}

Semantic roles & 50–950 ramp

primary
#7A2D94
secondary
#7AB864
accent
#DD4B70
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2D94

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

Preview Lab → · Contrast checker → · Palette generator →

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