#762AA1#762AA1

#762AA1 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.6% C 0.185 H 310.1°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#762AA1
RGBrgb(118, 42, 161)
HSLhsl(278, 59%, 40%)
HSVhsv(278, 74%, 63%)
CMYKcmyk(26.7%, 73.9%, 0%, 36.9%)
CIE-LABlab(34.15, 52.41, -49.87)
CIE-LCHlch(34.15, 72.35, 316.42°)
OKLaboklab(45.57% 0.1191 -0.1413)
OKLCHoklch(45.57% 0.185 310.1)
XYZxyz(14.7309, 8.0810, 34.4951)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#762AA1 #55A12A
analogous
#3A2AA1 #762AA1 #A12A91
triadic
#762AA1 #A1762A #2AA176
tetradic
#762AA1 #A13A2A #55A12A #2A91A1
square
#762AA1 #A13A2A #55A12A #2A91A1
split-complementary
#762AA1 #91A12A #2AA13A
monochromatic
#2F1140 #521D70 #762AA1 #983CCC #B26DD9

Accessibility & contrast

On white

8.03
#762AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#762AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #762AA1
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##762AA1#FFFFFF#000000##FFFFFF
##762AA11.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA4
Deuteranopia (green-blind)
#10519E
Tritanopia (blue-blind)
#704563
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #762aa1;
/* rgb */ color: rgb(118, 42, 161);
/* oklch */ color: oklch(45.6% 0.185 310.1);
Tailwind
colors: {
  custom: {
    50: '#a26bbe',
    500: '#762aa1',
    950: '#000000',
  },
}
SCSS
$custom: #762aa1;
$custom-light: #a26bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#762aa1",
  "rgb": {
    "r": 118,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 278.319,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45569,
    "c": 0.18479,
    "h": 310.1
  },
  "luminance": 0.08081
}

Semantic roles & 50–950 ramp

primary
#762AA1
secondary
#87C067
accent
#E2467E
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #762AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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