#762AA8#762AA8

#762AA8 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 46.1% C 0.192 H 307.9°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#762AA8
RGBrgb(118, 42, 168)
HSLhsl(276, 60%, 41%)
HSVhsv(276, 75%, 66%)
CMYKcmyk(29.8%, 75%, 0%, 34.1%)
CIE-LABlab(34.67, 53.97, -53.25)
CIE-LCHlch(34.67, 75.82, 315.39°)
OKLaboklab(46.1% 0.1179 -0.1512)
OKLCHoklch(46.1% 0.192 307.9)
XYZxyz(15.3656, 8.3349, 37.8375)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#762AA8 #5CA82A
analogous
#372AA8 #762AA8 #A82A9B
triadic
#762AA8 #A8762A #2AA876
tetradic
#762AA8 #A8372A #5CA82A #2A9BA8
square
#762AA8 #A8372A #5CA82A #2A9BA8
split-complementary
#762AA8 #9BA82A #2AA837
monochromatic
#311246 #541E77 #762AA8 #9640CF #B171DB

Accessibility & contrast

On white

7.87
#762AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#762AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #762AA8
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##762AA8#FFFFFF#000000##FFFFFF
##762AA81.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAC
Deuteranopia (green-blind)
#0052A5
Tritanopia (blue-blind)
#6E4867
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #762aa8;
/* rgb */ color: rgb(118, 42, 168);
/* oklch */ color: oklch(46.1% 0.192 307.9);
Tailwind
colors: {
  custom: {
    50: '#a26bc3',
    500: '#762aa8',
    950: '#000000',
  },
}
SCSS
$custom: #762aa8;
$custom-light: #a26bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#762aa8",
  "rgb": {
    "r": 118,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 276.19,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.461,
    "c": 0.19172,
    "h": 307.9
  },
  "luminance": 0.08335
}

Semantic roles & 50–950 ramp

primary
#762AA8
secondary
#8EC36B
accent
#E34584
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #762AA8

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

Preview Lab → · Contrast checker → · Palette generator →

#762AA8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva