#7A2F94#7A2F94

#7A2F94 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.7% C 0.167 H 316.1°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#7A2F94
RGBrgb(122, 47, 148)
HSLhsl(285, 52%, 38%)
HSVhsv(285, 68%, 58%)
CMYKcmyk(17.6%, 68.2%, 0%, 42%)
CIE-LABlab(34.62, 48.28, -41.19)
CIE-LCHlch(34.62, 63.47, 319.53°)
OKLaboklab(45.74% 0.1204 -0.1157)
OKLCHoklch(45.74% 0.167 316.1)
XYZxyz(14.3870, 8.3093, 28.8572)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2F94 #49942F
analogous
#472F94 #7A2F94 #942F7B
triadic
#7A2F94 #947A2F #2F947A
tetradic
#7A2F94 #94472F #49942F #2F7B94
square
#7A2F94 #94472F #49942F #2F7B94
split-complementary
#7A2F94 #7B942F #2F9447
monochromatic
#2D1137 #542066 #7A2F94 #A03EC2 #B76DD1

Accessibility & contrast

On white

7.89
#7A2F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7A2F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2F94
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2F94#FFFFFF#000000##FFFFFF
##7A2F941.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D97
Deuteranopia (green-blind)
#2F5492
Tritanopia (blue-blind)
#78425D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a2f94;
/* rgb */ color: rgb(122, 47, 148);
/* oklch */ color: oklch(45.7% 0.167 316.1);
Tailwind
colors: {
  custom: {
    50: '#a46eb4',
    500: '#7a2f94',
    950: '#000000',
  },
}
SCSS
$custom: #7a2f94;
$custom-light: #a46eb4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2f94",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 148
  },
  "hsl": {
    "h": 284.554,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.4574,
    "c": 0.16699,
    "h": 316.1
  },
  "luminance": 0.08309
}

Semantic roles & 50–950 ramp

primary
#7A2F94
secondary
#7CB867
accent
#DB4D71
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #7A2F94

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

Preview Lab → · Contrast checker → · Palette generator →

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