#762D98#762D98

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

Color values

HEX#762D98
RGBrgb(118, 45, 152)
HSLhsl(281, 54%, 39%)
HSVhsv(281, 70%, 60%)
CMYKcmyk(22.4%, 70.4%, 0%, 40.4%)
CIE-LABlab(33.97, 49.13, -44.70)
CIE-LCHlch(33.97, 66.42, 317.70°)
OKLaboklab(45.24% 0.1172 -0.1261)
OKLCHoklch(45.24% 0.172 312.9)
XYZxyz(14.0761, 7.9957, 30.5015)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#762D98 #4F982D
analogous
#402D98 #762D98 #982D84
triadic
#762D98 #98762D #2D9876
tetradic
#762D98 #98402D #4F982D #2D8498
square
#762D98 #98402D #4F982D #2D8498
split-complementary
#762D98 #84982D #2D9840
monochromatic
#2D113A #511F69 #762D98 #9A3DC5 #B36CD3

Accessibility & contrast

On white

8.08
#762D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#762D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #762D98
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##762D98#FFFFFF#000000##FFFFFF
##762D981.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#245196
Tritanopia (blue-blind)
#72435F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #762d98;
/* rgb */ color: rgb(118, 45, 152);
/* oklch */ color: oklch(45.2% 0.172 312.9);
Tailwind
colors: {
  custom: {
    50: '#a16cb7',
    500: '#762d98',
    950: '#000000',
  },
}
SCSS
$custom: #762d98;
$custom-light: #a16cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#762d98",
  "rgb": {
    "r": 118,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 280.935,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45241,
    "c": 0.17211,
    "h": 312.9
  },
  "luminance": 0.07995
}

Semantic roles & 50–950 ramp

primary
#762D98
secondary
#81BA66
accent
#DE4A79
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #762D98

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

Preview Lab → · Contrast checker → · Palette generator →

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