#762D9C#762D9C

#762D9C is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.5% C 0.176 H 311.5°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#762D9C
RGBrgb(118, 45, 156)
HSLhsl(279, 55%, 39%)
HSVhsv(279, 71%, 61%)
CMYKcmyk(24.4%, 71.2%, 0%, 38.8%)
CIE-LABlab(34.25, 50.01, -46.69)
CIE-LCHlch(34.25, 68.42, 316.97°)
OKLaboklab(45.53% 0.1167 -0.1319)
OKLCHoklch(45.53% 0.176 311.5)
XYZxyz(14.4092, 8.1290, 32.2560)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#762D9C #539C2D
analogous
#3E2D9C #762D9C #9C2D8B
triadic
#762D9C #9C762D #2D9C76
tetradic
#762D9C #9C3E2D #539C2D #2D8B9C
square
#762D9C #9C3E2D #539C2D #2D8B9C
split-complementary
#762D9C #8B9C2D #2D9C3E
monochromatic
#2E123D #521F6D #762D9C #993FC8 #B26ED5

Accessibility & contrast

On white

8.00
#762D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#762D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #762D9C
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##762D9C#FFFFFF#000000##FFFFFF
##762D9C1.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9F
Deuteranopia (green-blind)
#1F529A
Tritanopia (blue-blind)
#714561
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #762d9c;
/* rgb */ color: rgb(118, 45, 156);
/* oklch */ color: oklch(45.5% 0.176 311.5);
Tailwind
colors: {
  custom: {
    50: '#a16cba',
    500: '#762d9c',
    950: '#000000',
  },
}
SCSS
$custom: #762d9c;
$custom-light: #a16cba;
$custom-dark: #000000;
JSON
{
  "hex": "#762d9c",
  "rgb": {
    "r": 118,
    "g": 45,
    "b": 156
  },
  "hsl": {
    "h": 279.459,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.45526,
    "c": 0.17614,
    "h": 311.5
  },
  "luminance": 0.08129
}

Semantic roles & 50–950 ramp

primary
#762D9C
secondary
#85BC68
accent
#DF497C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #762D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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