#762D97#762D97

#762D97 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.2% C 0.171 H 313.3°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#762D97
RGBrgb(118, 45, 151)
HSLhsl(281, 54%, 38%)
HSVhsv(281, 70%, 59%)
CMYKcmyk(21.9%, 70.2%, 0%, 40.8%)
CIE-LABlab(33.91, 48.91, -44.20)
CIE-LCHlch(33.91, 65.93, 317.90°)
OKLaboklab(45.17% 0.1173 -0.1246)
OKLCHoklch(45.17% 0.171 313.3)
XYZxyz(13.9945, 7.9631, 30.0720)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#762D97 #4E972D
analogous
#412D97 #762D97 #972D83
triadic
#762D97 #97762D #2D9776
tetradic
#762D97 #97412D #4E972D #2D8397
square
#762D97 #97412D #4E972D #2D8397
split-complementary
#762D97 #83972D #2D9741
monochromatic
#2C1139 #511F68 #762D97 #9A3CC5 #B36BD3

Accessibility & contrast

On white

8.10
#762D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#762D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #762D97
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##762D97#FFFFFF#000000##FFFFFF
##762D971.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#255195
Tritanopia (blue-blind)
#73435E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #762d97;
/* rgb */ color: rgb(118, 45, 151);
/* oklch */ color: oklch(45.2% 0.171 313.3);
Tailwind
colors: {
  custom: {
    50: '#a16cb6',
    500: '#762d97',
    950: '#000000',
  },
}
SCSS
$custom: #762d97;
$custom-light: #a16cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#762d97",
  "rgb": {
    "r": 118,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 281.321,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45171,
    "c": 0.17111,
    "h": 313.3
  },
  "luminance": 0.07963
}

Semantic roles & 50–950 ramp

primary
#762D97
secondary
#80BA66
accent
#DD4A78
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #762D97

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

Preview Lab → · Contrast checker → · Palette generator →

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