#762DA7#762DA7

#762DA7 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.3% C 0.187 H 307.9°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#762DA7
RGBrgb(118, 45, 167)
HSLhsl(276, 58%, 42%)
HSVhsv(276, 73%, 65%)
CMYKcmyk(29.3%, 73.1%, 0%, 34.5%)
CIE-LABlab(35.04, 52.48, -52.05)
CIE-LCHlch(35.04, 73.91, 315.24°)
OKLaboklab(46.34% 0.1152 -0.1477)
OKLCHoklch(46.34% 0.187 307.9)
XYZxyz(15.3832, 8.5186, 37.3856)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#762DA7 #5EA72D
analogous
#392DA7 #762DA7 #A72D9B
triadic
#762DA7 #A7762D #2DA776
tetradic
#762DA7 #A7392D #5EA72D #2D9BA7
square
#762DA7 #A7392D #5EA72D #2D9BA7
split-complementary
#762DA7 #9BA72D #2DA739
monochromatic
#321347 #542077 #762DA7 #9644CD #B175DA

Accessibility & contrast

On white

7.77
#762DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#762DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #762DA7
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##762DA7#FFFFFF#000000##FFFFFF
##762DA71.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#0353A4
Tritanopia (blue-blind)
#6E4967
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #762da7;
/* rgb */ color: rgb(118, 45, 167);
/* oklch */ color: oklch(46.3% 0.187 307.9);
Tailwind
colors: {
  custom: {
    50: '#a26dc2',
    500: '#762da7',
    950: '#000000',
  },
}
SCSS
$custom: #762da7;
$custom-light: #a26dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#762da7",
  "rgb": {
    "r": 118,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 275.902,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.46338,
    "c": 0.18726,
    "h": 307.9
  },
  "luminance": 0.08518
}

Semantic roles & 50–950 ramp

primary
#762DA7
secondary
#90C16E
accent
#E14785
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #762DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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