#762D8E#762D8E

#762D8E is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.6% C 0.162 H 316.7°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#762D8E
RGBrgb(118, 45, 142)
HSLhsl(285, 52%, 37%)
HSVhsv(285, 68%, 56%)
CMYKcmyk(16.9%, 68.3%, 0%, 44.3%)
CIE-LABlab(33.31, 46.98, -39.64)
CIE-LCHlch(33.31, 61.47, 319.84°)
OKLaboklab(44.55% 0.1179 -0.1113)
OKLCHoklch(44.55% 0.162 316.7)
XYZxyz(13.2914, 7.6818, 26.3686)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#762D8E #458E2D
analogous
#462D8E #762D8E #8E2D76
triadic
#762D8E #8E762D #2D8E76
tetradic
#762D8E #8E462D #458E2D #2D768E
square
#762D8E #8E462D #458E2D #2D768E
split-complementary
#762D8E #768E2D #2D8E46
monochromatic
#291031 #4F1E60 #762D8E #9D3CBC #B567CF

Accessibility & contrast

On white

8.28
#762D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#762D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #762D8E
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##762D8E#FFFFFF#000000##FFFFFF
##762D8E1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A91
Deuteranopia (green-blind)
#2E508C
Tritanopia (blue-blind)
#753F5A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #762d8e;
/* rgb */ color: rgb(118, 45, 142);
/* oklch */ color: oklch(44.6% 0.162 316.7);
Tailwind
colors: {
  custom: {
    50: '#a16cb0',
    500: '#762d8e',
    950: '#000000',
  },
}
SCSS
$custom: #762d8e;
$custom-light: #a16cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#762d8e",
  "rgb": {
    "r": 118,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 285.155,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.44554,
    "c": 0.16211,
    "h": 316.7
  },
  "luminance": 0.07681
}

Semantic roles & 50–950 ramp

primary
#762D8E
secondary
#76B561
accent
#DB4C70
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #762D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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