#762F9F#762F9F

#762F9F is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.0% C 0.177 H 310.3°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#762F9F
RGBrgb(118, 47, 159)
HSLhsl(278, 54%, 40%)
HSVhsv(278, 70%, 62%)
CMYKcmyk(25.8%, 70.4%, 0%, 37.6%)
CIE-LABlab(34.78, 49.79, -47.65)
CIE-LCHlch(34.78, 68.92, 316.25°)
OKLaboklab(45.97% 0.1142 -0.1348)
OKLCHoklch(45.97% 0.177 310.3)
XYZxyz(14.7445, 8.3881, 33.6365)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#762F9F #589F2F
analogous
#3E2F9F #762F9F #9F2F90
triadic
#762F9F #9F762F #2F9F76
tetradic
#762F9F #9F3E2F #589F2F #2F909F
square
#762F9F #9F3E2F #589F2F #2F909F
split-complementary
#762F9F #909F2F #2F9F3E
monochromatic
#301341 #532170 #762F9F #9744C8 #B173D6

Accessibility & contrast

On white

7.84
#762F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#762F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #762F9F
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##762F9F#FFFFFF#000000##FFFFFF
##762F9F1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA2
Deuteranopia (green-blind)
#1D539D
Tritanopia (blue-blind)
#704763
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #762f9f;
/* rgb */ color: rgb(118, 47, 159);
/* oklch */ color: oklch(46.0% 0.177 310.3);
Tailwind
colors: {
  custom: {
    50: '#a16ebc',
    500: '#762f9f',
    950: '#000000',
  },
}
SCSS
$custom: #762f9f;
$custom-light: #a16ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#762f9f",
  "rgb": {
    "r": 118,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 278.036,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4597,
    "c": 0.17664,
    "h": 310.3
  },
  "luminance": 0.08388
}

Semantic roles & 50–950 ramp

primary
#762F9F
secondary
#8ABD6D
accent
#DE4A80
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #762F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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