#762BA3#762BA3

#762BA3 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.8% C 0.186 H 309.4°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#762BA3
RGBrgb(118, 43, 163)
HSLhsl(278, 58%, 40%)
HSVhsv(278, 74%, 64%)
CMYKcmyk(27.6%, 73.6%, 0%, 36.1%)
CIE-LABlab(34.44, 52.43, -50.61)
CIE-LCHlch(34.44, 72.87, 316.02°)
OKLaboklab(45.82% 0.1178 -0.1434)
OKLCHoklch(45.82% 0.186 309.4)
XYZxyz(14.9446, 8.2239, 35.4433)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#762BA3 #58A32B
analogous
#3A2BA3 #762BA3 #A32B94
triadic
#762BA3 #A3762B #2BA376
tetradic
#762BA3 #A33A2B #58A32B #2B94A3
square
#762BA3 #A33A2B #58A32B #2B94A3
split-complementary
#762BA3 #94A32B #2BA33A
monochromatic
#301142 #531E73 #762BA3 #973FCC #B16FD9

Accessibility & contrast

On white

7.94
#762BA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #762BA3
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##762BA3#FFFFFF#000000##FFFFFF
##762BA31.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA6
Deuteranopia (green-blind)
#0C52A0
Tritanopia (blue-blind)
#6F4765
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #762ba3;
/* rgb */ color: rgb(118, 43, 163);
/* oklch */ color: oklch(45.8% 0.186 309.4);
Tailwind
colors: {
  custom: {
    50: '#a26cbf',
    500: '#762ba3',
    950: '#000000',
  },
}
SCSS
$custom: #762ba3;
$custom-light: #a26cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#762ba3",
  "rgb": {
    "r": 118,
    "g": 43,
    "b": 163
  },
  "hsl": {
    "h": 277.5,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.45823,
    "c": 0.1856,
    "h": 309.4
  },
  "luminance": 0.08224
}

Semantic roles & 50–950 ramp

primary
#762BA3
secondary
#8AC06A
accent
#E14681
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #762BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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