#762DBB#762DBB

#762DBB is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.9% C 0.207 H 302.4°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#762DBB
RGBrgb(118, 45, 187)
HSLhsl(271, 61%, 45%)
HSVhsv(271, 76%, 73%)
CMYKcmyk(36.9%, 75.9%, 0%, 26.7%)
CIE-LABlab(36.59, 57.12, -61.43)
CIE-LCHlch(36.59, 83.88, 312.92°)
OKLaboklab(47.91% 0.1111 -0.1752)
OKLCHoklch(47.91% 0.207 302.4)
XYZxyz(17.3771, 9.3161, 47.8868)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#762DBB #72BB2D
analogous
#2F2DBB #762DBB #BB2DB9
triadic
#762DBB #BB762D #2DBB76
tetradic
#762DBB #BB2F2D #72BB2D #2DB9BB
square
#762DBB #BB2F2D #72BB2D #2DB9BB
split-complementary
#762DBB #B9BB2D #2DBB2F
monochromatic
#381558 #57218A #762DBB #9450D5 #B382E1

Accessibility & contrast

On white

7.33
#762DBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#762DBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #762DBB
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##762DBB#FFFFFF#000000##FFFFFF
##762DBB1.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BF
Deuteranopia (green-blind)
#0056B8
Tritanopia (blue-blind)
#675273
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #762dbb;
/* rgb */ color: rgb(118, 45, 187);
/* oklch */ color: oklch(47.9% 0.207 302.4);
Tailwind
colors: {
  custom: {
    50: '#a46ed0',
    500: '#762dbb',
    950: '#000000',
  },
}
SCSS
$custom: #762dbb;
$custom-light: #a46ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#762dbb",
  "rgb": {
    "r": 118,
    "g": 45,
    "b": 187
  },
  "hsl": {
    "h": 270.845,
    "s": 61.207,
    "l": 45.49
  },
  "oklch": {
    "l": 0.47913,
    "c": 0.20749,
    "h": 302.4
  },
  "luminance": 0.09316
}

Semantic roles & 50–950 ramp

primary
#762DBB
secondary
#A1CA7A
accent
#E44392
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #762DBB

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

Preview Lab → · Contrast checker → · Palette generator →

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