#7A289F#7A289F

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

Color values

HEX#7A289F
RGBrgb(122, 40, 159)
HSLhsl(281, 60%, 39%)
HSVhsv(281, 75%, 62%)
CMYKcmyk(23.3%, 74.8%, 0%, 37.6%)
CIE-LABlab(34.31, 53.59, -48.38)
CIE-LCHlch(34.31, 72.20, 317.93°)
OKLaboklab(45.76% 0.1268 -0.1367)
OKLCHoklch(45.76% 0.186 312.8)
XYZxyz(15.0417, 8.1588, 33.5766)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A289F #4D9F28
analogous
#3F289F #7A289F #9F2889
triadic
#7A289F #9F7A28 #289F7A
tetradic
#7A289F #9F3F28 #4D9F28 #28899F
square
#7A289F #9F3F28 #4D9F28 #28899F
split-complementary
#7A289F #899F28 #289F3F
monochromatic
#2F0F3D #541C6E #7A289F #9E37CD #B668D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A289F#FFFFFF#000000##FFFFFF
##7A289F1.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)
#004DA2
Deuteranopia (green-blind)
#1B529C
Tritanopia (blue-blind)
#764362
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a289f;
/* rgb */ color: rgb(122, 40, 159);
/* oklch */ color: oklch(45.8% 0.186 312.8);
Tailwind
colors: {
  custom: {
    50: '#a56abc',
    500: '#7a289f',
    950: '#000000',
  },
}
SCSS
$custom: #7a289f;
$custom-light: #a56abc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a289f",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 159
  },
  "hsl": {
    "h": 281.345,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45759,
    "c": 0.18645,
    "h": 312.8
  },
  "luminance": 0.08158
}

Semantic roles & 50–950 ramp

primary
#7A289F
secondary
#80BF64
accent
#E34576
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A289F

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

Preview Lab → · Contrast checker → · Palette generator →

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