#762D9E#762D9E

#762D9E is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.7% C 0.178 H 310.8°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#762D9E
RGBrgb(118, 45, 158)
HSLhsl(279, 56%, 40%)
HSVhsv(279, 72%, 62%)
CMYKcmyk(25.3%, 71.5%, 0%, 38%)
CIE-LABlab(34.39, 50.46, -47.67)
CIE-LCHlch(34.39, 69.42, 316.62°)
OKLaboklab(45.67% 0.1165 -0.1348)
OKLCHoklch(45.67% 0.178 310.8)
XYZxyz(14.5800, 8.1973, 33.1553)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#762D9E #559E2D
analogous
#3E2D9E #762D9E #9E2D8E
triadic
#762D9E #9E762D #2D9E76
tetradic
#762D9E #9E3E2D #559E2D #2D8E9E
square
#762D9E #9E3E2D #559E2D #2D8E9E
split-complementary
#762D9E #8E9E2D #2D9E3E
monochromatic
#2F123F #521F6E #762D9E #9840C9 #B26FD6

Accessibility & contrast

On white

7.96
#762D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#762D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #762D9E
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##762D9E#FFFFFF#000000##FFFFFF
##762D9E1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA1
Deuteranopia (green-blind)
#1B529C
Tritanopia (blue-blind)
#714662
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #762d9e;
/* rgb */ color: rgb(118, 45, 158);
/* oklch */ color: oklch(45.7% 0.178 310.8);
Tailwind
colors: {
  custom: {
    50: '#a16cbb',
    500: '#762d9e',
    950: '#000000',
  },
}
SCSS
$custom: #762d9e;
$custom-light: #a16cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#762d9e",
  "rgb": {
    "r": 118,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 278.761,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45671,
    "c": 0.17816,
    "h": 310.8
  },
  "luminance": 0.08197
}

Semantic roles & 50–950 ramp

primary
#762D9E
secondary
#87BD69
accent
#DF497E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #762D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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