#762AA2#762AA2

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

Color values

HEX#762AA2
RGBrgb(118, 42, 162)
HSLhsl(278, 59%, 40%)
HSVhsv(278, 74%, 64%)
CMYKcmyk(27.2%, 74.1%, 0%, 36.5%)
CIE-LABlab(34.22, 52.63, -50.36)
CIE-LCHlch(34.22, 72.84, 316.26°)
OKLaboklab(45.64% 0.119 -0.1427)
OKLCHoklch(45.64% 0.186 309.8)
XYZxyz(14.8195, 8.1164, 34.9614)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#762AA2 #56A22A
analogous
#3A2AA2 #762AA2 #A22A92
triadic
#762AA2 #A2762A #2AA276
tetradic
#762AA2 #A23A2A #56A22A #2A92A2
square
#762AA2 #A23A2A #56A22A #2A92A2
split-complementary
#762AA2 #92A22A #2AA23A
monochromatic
#2F1141 #531D71 #762AA2 #983DCD #B26DD9

Accessibility & contrast

On white

8.01
#762AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #762AA2
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##762AA2#FFFFFF#000000##FFFFFF
##762AA21.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#0D529F
Tritanopia (blue-blind)
#704664
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #762aa2;
/* rgb */ color: rgb(118, 42, 162);
/* oklch */ color: oklch(45.6% 0.186 309.8);
Tailwind
colors: {
  custom: {
    50: '#a26bbe',
    500: '#762aa2',
    950: '#000000',
  },
}
SCSS
$custom: #762aa2;
$custom-light: #a26bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#762aa2",
  "rgb": {
    "r": 118,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 278,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.45644,
    "c": 0.18578,
    "h": 309.8
  },
  "luminance": 0.08116
}

Semantic roles & 50–950 ramp

primary
#762AA2
secondary
#88C068
accent
#E2467F
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #762AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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