#772D98#772D98

#772D98 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.4% C 0.172 H 313.4°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#772D98
RGBrgb(119, 45, 152)
HSLhsl(281, 54%, 39%)
HSVhsv(281, 70%, 60%)
CMYKcmyk(21.7%, 70.4%, 0%, 40.4%)
CIE-LABlab(34.12, 49.35, -44.46)
CIE-LCHlch(34.12, 66.42, 317.99°)
OKLaboklab(45.38% 0.1185 -0.1253)
OKLCHoklch(45.38% 0.172 313.4)
XYZxyz(14.2126, 8.0661, 30.5079)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772D98 #4E982D
analogous
#412D98 #772D98 #982D83
triadic
#772D98 #98772D #2D9877
tetradic
#772D98 #98412D #4E982D #2D8398
square
#772D98 #98412D #4E982D #2D8398
split-complementary
#772D98 #83982D #2D9841
monochromatic
#2D113A #521F69 #772D98 #9B3DC5 #B46CD3

Accessibility & contrast

On white

8.04
#772D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#772D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772D98
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772D98#FFFFFF#000000##FFFFFF
##772D981.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#255296
Tritanopia (blue-blind)
#74435F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #772d98;
/* rgb */ color: rgb(119, 45, 152);
/* oklch */ color: oklch(45.4% 0.172 313.4);
Tailwind
colors: {
  custom: {
    50: '#a26cb7',
    500: '#772d98',
    950: '#000000',
  },
}
SCSS
$custom: #772d98;
$custom-light: #a26cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#772d98",
  "rgb": {
    "r": 119,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 281.495,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45376,
    "c": 0.17248,
    "h": 313.4
  },
  "luminance": 0.08066
}

Semantic roles & 50–950 ramp

primary
#772D98
secondary
#80BA66
accent
#DE4A78
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #772D98

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

Preview Lab → · Contrast checker → · Palette generator →

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