#772A9F#772A9F

#772A9F is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.6% C 0.183 H 311.3°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#772A9F
RGBrgb(119, 42, 159)
HSLhsl(279, 58%, 39%)
HSVhsv(279, 74%, 62%)
CMYKcmyk(25.2%, 73.6%, 0%, 37.6%)
CIE-LABlab(34.15, 52.17, -48.66)
CIE-LCHlch(34.15, 71.34, 317.00°)
OKLaboklab(45.55% 0.1208 -0.1376)
OKLCHoklch(45.55% 0.183 311.3)
XYZxyz(14.6925, 8.0814, 33.5801)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772A9F #529F2A
analogous
#3C2A9F #772A9F #9F2A8D
triadic
#772A9F #9F772A #2A9F77
tetradic
#772A9F #9F3C2A #529F2A #2A8D9F
square
#772A9F #9F3C2A #529F2A #2A8D9F
split-complementary
#772A9F #8D9F2A #2A9F3C
monochromatic
#2F103E #531D6F #772A9F #9A3BCB #B36BD8

Accessibility & contrast

On white

8.03
#772A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#772A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772A9F
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772A9F#FFFFFF#000000##FFFFFF
##772A9F1.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA2
Deuteranopia (green-blind)
#17529C
Tritanopia (blue-blind)
#724462
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #772a9f;
/* rgb */ color: rgb(119, 42, 159);
/* oklch */ color: oklch(45.6% 0.183 311.3);
Tailwind
colors: {
  custom: {
    50: '#a26bbc',
    500: '#772a9f',
    950: '#000000',
  },
}
SCSS
$custom: #772a9f;
$custom-light: #a26bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#772a9f",
  "rgb": {
    "r": 119,
    "g": 42,
    "b": 159
  },
  "hsl": {
    "h": 279.487,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.45554,
    "c": 0.18313,
    "h": 311.3
  },
  "luminance": 0.08081
}

Semantic roles & 50–950 ramp

primary
#772A9F
secondary
#84BF66
accent
#E1467B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #772A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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