#762BA6#762BA6

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

Color values

HEX#762BA6
RGBrgb(118, 43, 166)
HSLhsl(277, 59%, 41%)
HSVhsv(277, 74%, 65%)
CMYKcmyk(28.9%, 74.1%, 0%, 34.9%)
CIE-LABlab(34.67, 53.11, -52.05)
CIE-LCHlch(34.67, 74.36, 315.57°)
OKLaboklab(46.05% 0.1173 -0.1477)
OKLCHoklch(46.05% 0.189 308.5)
XYZxyz(15.2166, 8.3327, 36.8758)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#762BA6 #5BA62B
analogous
#382BA6 #762BA6 #A62B98
triadic
#762BA6 #A6762B #2BA676
tetradic
#762BA6 #A6382B #5BA62B #2B98A6
square
#762BA6 #A6382B #5BA62B #2B98A6
split-complementary
#762BA6 #98A62B #2BA638
monochromatic
#311245 #531E75 #762BA6 #9741CE #B171DA

Accessibility & contrast

On white

7.88
#762BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #762BA6
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##762BA6#FFFFFF#000000##FFFFFF
##762BA61.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA9
Deuteranopia (green-blind)
#0152A3
Tritanopia (blue-blind)
#6E4866
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #762ba6;
/* rgb */ color: rgb(118, 43, 166);
/* oklch */ color: oklch(46.1% 0.189 308.5);
Tailwind
colors: {
  custom: {
    50: '#a26cc1',
    500: '#762ba6',
    950: '#000000',
  },
}
SCSS
$custom: #762ba6;
$custom-light: #a26cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#762ba6",
  "rgb": {
    "r": 118,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 276.585,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.4605,
    "c": 0.18859,
    "h": 308.5
  },
  "luminance": 0.08332
}

Semantic roles & 50–950 ramp

primary
#762BA6
secondary
#8DC16B
accent
#E24683
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #762BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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