#762BA5#762BA5

#762BA5 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 46.0% C 0.188 H 308.8°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#762BA5
RGBrgb(118, 43, 165)
HSLhsl(277, 59%, 41%)
HSVhsv(277, 74%, 65%)
CMYKcmyk(28.5%, 73.9%, 0%, 35.3%)
CIE-LABlab(34.59, 52.88, -51.57)
CIE-LCHlch(34.59, 73.86, 315.72°)
OKLaboklab(45.97% 0.1175 -0.1463)
OKLCHoklch(45.97% 0.188 308.8)
XYZxyz(15.1252, 8.2962, 36.3945)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#762BA5 #5AA52B
analogous
#392BA5 #762BA5 #A52B97
triadic
#762BA5 #A5762B #2BA576
tetradic
#762BA5 #A5392B #5AA52B #2B97A5
square
#762BA5 #A5392B #5AA52B #2B97A5
split-complementary
#762BA5 #97A52B #2BA539
monochromatic
#311244 #531E74 #762BA5 #9740CD #B171DA

Accessibility & contrast

On white

7.90
#762BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #762BA5
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##762BA5#FFFFFF#000000##FFFFFF
##762BA51.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA8
Deuteranopia (green-blind)
#0552A2
Tritanopia (blue-blind)
#6F4766
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #762ba5;
/* rgb */ color: rgb(118, 43, 165);
/* oklch */ color: oklch(46.0% 0.188 308.8);
Tailwind
colors: {
  custom: {
    50: '#a26cc0',
    500: '#762ba5',
    950: '#000000',
  },
}
SCSS
$custom: #762ba5;
$custom-light: #a26cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#762ba5",
  "rgb": {
    "r": 118,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 276.885,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.45974,
    "c": 0.18759,
    "h": 308.8
  },
  "luminance": 0.08296
}

Semantic roles & 50–950 ramp

primary
#762BA5
secondary
#8CC16B
accent
#E24682
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #762BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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