#762F9D#762F9D

#762F9D is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.8% C 0.175 H 310.9°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#762F9D
RGBrgb(118, 47, 157)
HSLhsl(279, 54%, 40%)
HSVhsv(279, 70%, 62%)
CMYKcmyk(24.8%, 70.1%, 0%, 38.4%)
CIE-LABlab(34.64, 49.34, -46.67)
CIE-LCHlch(34.64, 67.91, 316.59°)
OKLaboklab(45.83% 0.1144 -0.1319)
OKLCHoklch(45.83% 0.175 310.9)
XYZxyz(14.5724, 8.3192, 32.7299)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#762F9D #569D2F
analogous
#3F2F9D #762F9D #9D2F8D
triadic
#762F9D #9D762F #2F9D76
tetradic
#762F9D #9D3F2F #569D2F #2F8D9D
square
#762F9D #9D3F2F #569D2F #2F8D9D
split-complementary
#762F9D #8D9D2F #2F9D3F
monochromatic
#2F133F #53216E #762F9D #9843C7 #B272D5

Accessibility & contrast

On white

7.88
#762F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#762F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #762F9D
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##762F9D#FFFFFF#000000##FFFFFF
##762F9D1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA0
Deuteranopia (green-blind)
#20539B
Tritanopia (blue-blind)
#714662
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #762f9d;
/* rgb */ color: rgb(118, 47, 157);
/* oklch */ color: oklch(45.8% 0.175 310.9);
Tailwind
colors: {
  custom: {
    50: '#a16dbb',
    500: '#762f9d',
    950: '#000000',
  },
}
SCSS
$custom: #762f9d;
$custom-light: #a16dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#762f9d",
  "rgb": {
    "r": 118,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 278.727,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.45826,
    "c": 0.17458,
    "h": 310.9
  },
  "luminance": 0.08319
}

Semantic roles & 50–950 ramp

primary
#762F9D
secondary
#88BC6B
accent
#DD4B7F
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #762F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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