#762BA2#762BA2

#762BA2 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.7% C 0.185 H 309.7°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#762BA2
RGBrgb(118, 43, 162)
HSLhsl(278, 58%, 40%)
HSVhsv(278, 73%, 64%)
CMYKcmyk(27.2%, 73.5%, 0%, 36.5%)
CIE-LABlab(34.37, 52.21, -50.12)
CIE-LCHlch(34.37, 72.37, 316.17°)
OKLaboklab(45.75% 0.118 -0.142)
OKLCHoklch(45.75% 0.185 309.7)
XYZxyz(14.8554, 8.1882, 34.9733)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#762BA2 #57A22B
analogous
#3A2BA2 #762BA2 #A22B93
triadic
#762BA2 #A2762B #2BA276
tetradic
#762BA2 #A23A2B #57A22B #2B93A2
square
#762BA2 #A23A2B #57A22B #2B93A2
split-complementary
#762BA2 #93A22B #2BA23A
monochromatic
#301141 #531E72 #762BA2 #983ECC #B26FD9

Accessibility & contrast

On white

7.96
#762BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#762BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #762BA2
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##762BA2#FFFFFF#000000##FFFFFF
##762BA21.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#0F529F
Tritanopia (blue-blind)
#704664
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #762ba2;
/* rgb */ color: rgb(118, 43, 162);
/* oklch */ color: oklch(45.7% 0.185 309.7);
Tailwind
colors: {
  custom: {
    50: '#a26cbe',
    500: '#762ba2',
    950: '#000000',
  },
}
SCSS
$custom: #762ba2;
$custom-light: #a26cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#762ba2",
  "rgb": {
    "r": 118,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 277.815,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.45748,
    "c": 0.18461,
    "h": 309.7
  },
  "luminance": 0.08188
}

Semantic roles & 50–950 ramp

primary
#762BA2
secondary
#89C069
accent
#E14780
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #762BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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