#762BA7#762BA7

#762BA7 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.1% C 0.190 H 308.2°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#762BA7
RGBrgb(118, 43, 167)
HSLhsl(276, 59%, 41%)
HSVhsv(276, 74%, 65%)
CMYKcmyk(29.3%, 74.3%, 0%, 34.5%)
CIE-LABlab(34.74, 53.33, -52.53)
CIE-LCHlch(34.74, 74.86, 315.43°)
OKLaboklab(46.13% 0.1171 -0.1491)
OKLCHoklch(46.13% 0.19 308.2)
XYZxyz(15.3087, 8.3696, 37.3607)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#762BA7 #5CA72B
analogous
#382BA7 #762BA7 #A72B9A
triadic
#762BA7 #A7762B #2BA776
tetradic
#762BA7 #A7382B #5CA72B #2B9AA7
square
#762BA7 #A7382B #5CA72B #2B9AA7
split-complementary
#762BA7 #9AA72B #2BA738
monochromatic
#311246 #541E76 #762BA7 #9641CE #B172DB

Accessibility & contrast

On white

7.85
#762BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #762BA7
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##762BA7#FFFFFF#000000##FFFFFF
##762BA71.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #762ba7;
/* rgb */ color: rgb(118, 43, 167);
/* oklch */ color: oklch(46.1% 0.190 308.2);
Tailwind
colors: {
  custom: {
    50: '#a26cc2',
    500: '#762ba7',
    950: '#000000',
  },
}
SCSS
$custom: #762ba7;
$custom-light: #a26cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#762ba7",
  "rgb": {
    "r": 118,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 276.29,
    "s": 59.048,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46126,
    "c": 0.18958,
    "h": 308.2
  },
  "luminance": 0.08369
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #762BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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