#762B98#762B98

#762B98 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.175 H 313.1°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#762B98
RGBrgb(118, 43, 152)
HSLhsl(281, 56%, 38%)
HSVhsv(281, 72%, 60%)
CMYKcmyk(22.4%, 71.7%, 0%, 40.4%)
CIE-LABlab(33.66, 50.01, -45.20)
CIE-LCHlch(33.66, 67.41, 317.89°)
OKLaboklab(45.02% 0.1193 -0.1275)
OKLCHoklch(45.02% 0.175 313.1)
XYZxyz(14.0016, 7.8467, 30.4767)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#762B98 #4D982B
analogous
#3F2B98 #762B98 #982B83
triadic
#762B98 #98762B #2B9876
tetradic
#762B98 #983F2B #4D982B #2B8398
square
#762B98 #983F2B #4D982B #2B8398
split-complementary
#762B98 #83982B #2B983F
monochromatic
#2C1039 #511E68 #762B98 #9B39C7 #B369D5

Accessibility & contrast

On white

8.17
#762B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#762B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #762B98
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##762B98#FFFFFF#000000##FFFFFF
##762B981.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#225196
Tritanopia (blue-blind)
#72425E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #762b98;
/* rgb */ color: rgb(118, 43, 152);
/* oklch */ color: oklch(45.0% 0.175 313.1);
Tailwind
colors: {
  custom: {
    50: '#a16bb7',
    500: '#762b98',
    950: '#000000',
  },
}
SCSS
$custom: #762b98;
$custom-light: #a16bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#762b98",
  "rgb": {
    "r": 118,
    "g": 43,
    "b": 152
  },
  "hsl": {
    "h": 281.284,
    "s": 55.897,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45018,
    "c": 0.17467,
    "h": 313.1
  },
  "luminance": 0.07846
}

Semantic roles & 50–950 ramp

primary
#762B98
secondary
#7FBB64
accent
#DF4978
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #762B98

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

Preview Lab → · Contrast checker → · Palette generator →

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