#762BA8#762BA8

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

Color values

HEX#762BA8
RGBrgb(118, 43, 168)
HSLhsl(276, 59%, 41%)
HSVhsv(276, 74%, 66%)
CMYKcmyk(29.8%, 74.4%, 0%, 34.1%)
CIE-LABlab(34.82, 53.56, -53.01)
CIE-LCHlch(34.82, 75.36, 315.29°)
OKLaboklab(46.2% 0.1169 -0.1505)
OKLCHoklch(46.2% 0.191 307.8)
XYZxyz(15.4015, 8.4067, 37.8495)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#762BA8 #5DA82B
analogous
#382BA8 #762BA8 #A82B9C
triadic
#762BA8 #A8762B #2BA876
tetradic
#762BA8 #A8382B #5DA82B #2B9CA8
square
#762BA8 #A8382B #5DA82B #2B9CA8
split-complementary
#762BA8 #9CA82B #2BA838
monochromatic
#321247 #541F77 #762BA8 #9642CF #B172DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##762BA8#FFFFFF#000000##FFFFFF
##762BA81.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)
#004FAC
Deuteranopia (green-blind)
#0053A5
Tritanopia (blue-blind)
#6E4967
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #762ba8;
/* rgb */ color: rgb(118, 43, 168);
/* oklch */ color: oklch(46.2% 0.191 307.8);
Tailwind
colors: {
  custom: {
    50: '#a26cc3',
    500: '#762ba8',
    950: '#000000',
  },
}
SCSS
$custom: #762ba8;
$custom-light: #a26cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#762ba8",
  "rgb": {
    "r": 118,
    "g": 43,
    "b": 168
  },
  "hsl": {
    "h": 276,
    "s": 59.242,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46203,
    "c": 0.19058,
    "h": 307.8
  },
  "luminance": 0.08406
}

Semantic roles & 50–950 ramp

primary
#762BA8
secondary
#8FC26C
accent
#E24584
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #762BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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