#772A98#772A98

#772A98 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.176 H 313.7°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#772A98
RGBrgb(119, 42, 152)
HSLhsl(282, 57%, 38%)
HSVhsv(282, 72%, 60%)
CMYKcmyk(21.7%, 72.4%, 0%, 40.4%)
CIE-LABlab(33.66, 50.65, -45.20)
CIE-LCHlch(33.66, 67.89, 318.26°)
OKLaboklab(45.05% 0.1217 -0.1275)
OKLCHoklch(45.05% 0.176 313.7)
XYZxyz(14.1022, 7.8453, 30.4711)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772A98 #4B982A
analogous
#402A98 #772A98 #982A82
triadic
#772A98 #98772A #2A9877
tetradic
#772A98 #98402A #4B982A #2A8298
square
#772A98 #98402A #4B982A #2A8298
split-complementary
#772A98 #82982A #2A9840
monochromatic
#2C1038 #511D68 #772A98 #9C37C8 #B467D5

Accessibility & contrast

On white

8.17
#772A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#772A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772A98
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772A98#FFFFFF#000000##FFFFFF
##772A981.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#225196
Tritanopia (blue-blind)
#74415E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #772a98;
/* rgb */ color: rgb(119, 42, 152);
/* oklch */ color: oklch(45.0% 0.176 313.7);
Tailwind
colors: {
  custom: {
    50: '#a26bb7',
    500: '#772a98',
    950: '#000000',
  },
}
SCSS
$custom: #772a98;
$custom-light: #a26bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#772a98",
  "rgb": {
    "r": 119,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 282,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45047,
    "c": 0.17628,
    "h": 313.7
  },
  "luminance": 0.07845
}

Semantic roles & 50–950 ramp

primary
#772A98
secondary
#7DBB62
accent
#E04875
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #772A98

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

Preview Lab → · Contrast checker → · Palette generator →

#772A98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva