#772EB5#772EB5

#772EB5 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.7% C 0.201 H 304.3°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#772EB5
RGBrgb(119, 46, 181)
HSLhsl(272, 59%, 45%)
HSVhsv(272, 75%, 71%)
CMYKcmyk(34.3%, 74.6%, 0%, 29%)
CIE-LABlab(36.39, 55.47, -58.20)
CIE-LCHlch(36.39, 80.40, 313.63°)
OKLaboklab(47.65% 0.1129 -0.1657)
OKLCHoklch(47.65% 0.201 304.3)
XYZxyz(16.9233, 9.2122, 44.5937)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772EB5 #6CB52E
analogous
#332EB5 #772EB5 #B52EB0
triadic
#772EB5 #B5772E #2EB577
tetradic
#772EB5 #B5332E #6CB52E #2EB0B5
square
#772EB5 #B5332E #6CB52E #2EB0B5
split-complementary
#772EB5 #B0B52E #2EB533
monochromatic
#371553 #572284 #772EB5 #954ED2 #B37FDE

Accessibility & contrast

On white

7.39
#772EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#772EB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772EB5
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772EB5#FFFFFF#000000##FFFFFF
##772EB51.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0056B2
Tritanopia (blue-blind)
#6B4F6F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #772eb5;
/* rgb */ color: rgb(119, 46, 181);
/* oklch */ color: oklch(47.7% 0.201 304.3);
Tailwind
colors: {
  custom: {
    50: '#a46ecc',
    500: '#772eb5',
    950: '#000000',
  },
}
SCSS
$custom: #772eb5;
$custom-light: #a46ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#772eb5",
  "rgb": {
    "r": 119,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 272.444,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47655,
    "c": 0.20054,
    "h": 304.3
  },
  "luminance": 0.09212
}

Semantic roles & 50–950 ramp

primary
#772EB5
secondary
#9CC778
accent
#E3458D
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #772EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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