#762AAB#762AAB

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

Color values

HEX#762AAB
RGBrgb(118, 42, 171)
HSLhsl(275, 61%, 42%)
HSVhsv(275, 75%, 67%)
CMYKcmyk(31%, 75.4%, 0%, 32.9%)
CIE-LABlab(34.90, 54.65, -54.67)
CIE-LCHlch(34.90, 77.30, 314.99°)
OKLaboklab(46.33% 0.1173 -0.1554)
OKLCHoklch(46.33% 0.195 307.1)
XYZxyz(15.6483, 8.4479, 39.3264)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#762AAB #5FAB2A
analogous
#362AAB #762AAB #AB2AA0
triadic
#762AAB #AB762A #2AAB76
tetradic
#762AAB #AB362A #5FAB2A #2AA0AB
square
#762AAB #AB362A #5FAB2A #2AA0AB
split-complementary
#762AAB #A0AB2A #2AAB36
monochromatic
#321249 #541E7A #762AAB #9642D1 #B173DD

Accessibility & contrast

On white

7.81
#762AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#762AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #762AAB
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##762AAB#FFFFFF#000000##FFFFFF
##762AAB1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#0053A8
Tritanopia (blue-blind)
#6D4969
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #762aab;
/* rgb */ color: rgb(118, 42, 171);
/* oklch */ color: oklch(46.3% 0.195 307.1);
Tailwind
colors: {
  custom: {
    50: '#a26cc5',
    500: '#762aab',
    950: '#000000',
  },
}
SCSS
$custom: #762aab;
$custom-light: #a26cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#762aab",
  "rgb": {
    "r": 118,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 275.349,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.46333,
    "c": 0.19468,
    "h": 307.1
  },
  "luminance": 0.08448
}

Semantic roles & 50–950 ramp

primary
#762AAB
secondary
#91C46D
accent
#E44486
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #762AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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