#762DAB#762DAB

#762DAB is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.6% C 0.191 H 306.7°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#762DAB
RGBrgb(118, 45, 171)
HSLhsl(275, 58%, 42%)
HSVhsv(275, 74%, 67%)
CMYKcmyk(31%, 73.7%, 0%, 32.9%)
CIE-LABlab(35.34, 53.40, -53.96)
CIE-LCHlch(35.34, 75.91, 314.70°)
OKLaboklab(46.64% 0.1145 -0.1533)
OKLCHoklch(46.64% 0.191 306.7)
XYZxyz(15.7587, 8.6688, 39.3632)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#762DAB #62AB2D
analogous
#372DAB #762DAB #AB2DA1
triadic
#762DAB #AB762D #2DAB76
tetradic
#762DAB #AB372D #62AB2D #2DA1AB
square
#762DAB #AB372D #62AB2D #2DA1AB
split-complementary
#762DAB #A1AB2D #2DAB37
monochromatic
#33144A #55207B #762DAB #9547CE #B177DB

Accessibility & contrast

On white

7.68
#762DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#762DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #762DAB
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##762DAB#FFFFFF#000000##FFFFFF
##762DAB1.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#0054A8
Tritanopia (blue-blind)
#6D4B6A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #762dab;
/* rgb */ color: rgb(118, 45, 171);
/* oklch */ color: oklch(46.6% 0.191 306.7);
Tailwind
colors: {
  custom: {
    50: '#a26dc5',
    500: '#762dab',
    950: '#000000',
  },
}
SCSS
$custom: #762dab;
$custom-light: #a26dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#762dab",
  "rgb": {
    "r": 118,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 274.762,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.46643,
    "c": 0.1913,
    "h": 306.7
  },
  "luminance": 0.08669
}

Semantic roles & 50–950 ramp

primary
#762DAB
secondary
#93C371
accent
#E24688
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #762DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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