#762AAA#762AAA

#762AAA is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.3% C 0.194 H 307.3°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#762AAA
RGBrgb(118, 42, 170)
HSLhsl(276, 60%, 42%)
HSVhsv(276, 75%, 67%)
CMYKcmyk(30.6%, 75.3%, 0%, 33.3%)
CIE-LABlab(34.82, 54.42, -54.20)
CIE-LCHlch(34.82, 76.81, 315.12°)
OKLaboklab(46.26% 0.1175 -0.154)
OKLCHoklch(46.26% 0.194 307.3)
XYZxyz(15.5533, 8.4100, 38.8263)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#762AAA #5EAA2A
analogous
#362AAA #762AAA #AA2A9E
triadic
#762AAA #AA762A #2AAA76
tetradic
#762AAA #AA362A #5EAA2A #2A9EAA
square
#762AAA #AA362A #5EAA2A #2A9EAA
split-complementary
#762AAA #9EAA2A #2AAA36
monochromatic
#321248 #541E79 #762AAA #9641D0 #B172DC

Accessibility & contrast

On white

7.83
#762AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#762AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #762AAA
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##762AAA#FFFFFF#000000##FFFFFF
##762AAA1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAE
Deuteranopia (green-blind)
#0052A7
Tritanopia (blue-blind)
#6D4968
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #762aaa;
/* rgb */ color: rgb(118, 42, 170);
/* oklch */ color: oklch(46.3% 0.194 307.3);
Tailwind
colors: {
  custom: {
    50: '#a26bc4',
    500: '#762aaa',
    950: '#000000',
  },
}
SCSS
$custom: #762aaa;
$custom-light: #a26bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#762aaa",
  "rgb": {
    "r": 118,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 275.625,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.46255,
    "c": 0.1937,
    "h": 307.3
  },
  "luminance": 0.0841
}

Semantic roles & 50–950 ramp

primary
#762AAA
secondary
#90C36C
accent
#E44485
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #762AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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