#762171#762171

#762171 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.4% C 0.152 H 330.4°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#762171
RGBrgb(118, 33, 113)
HSLhsl(304, 56%, 30%)
HSVhsv(304, 72%, 46%)
CMYKcmyk(0%, 72%, 4.2%, 53.7%)
CIE-LABlab(29.74, 46.46, -27.16)
CIE-LCHlch(29.74, 53.81, 329.69°)
OKLaboklab(41.42% 0.1319 -0.0748)
OKLCHoklch(41.42% 0.152 330.4)
XYZxyz(10.9957, 6.1324, 16.2241)
Luminance0.0613 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#762171 #217626
analogous
#502176 #762171 #762147
triadic
#762171 #717621 #217176
tetradic
#762171 #765021 #217626 #214776
square
#762171 #765021 #217626 #214776
split-complementary
#762171 #477621 #217650
monochromatic
#180717 #461443 #762171 #A62E9F #CB46C3

Accessibility & contrast

On white

9.43
#762171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#762171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #762171
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##762171#FFFFFF#000000##FFFFFF
##7621711.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193F73
Deuteranopia (green-blind)
#3A4A6F
Tritanopia (blue-blind)
#7B2B46
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #762171;
/* rgb */ color: rgb(118, 33, 113);
/* oklch */ color: oklch(41.4% 0.152 330.4);
Tailwind
colors: {
  custom: {
    50: '#a0659a',
    500: '#762171',
    950: '#000000',
  },
}
SCSS
$custom: #762171;
$custom-light: #a0659a;
$custom-dark: #000000;
JSON
{
  "hex": "#762171",
  "rgb": {
    "r": 118,
    "g": 33,
    "b": 113
  },
  "hsl": {
    "h": 303.529,
    "s": 56.291,
    "l": 29.608
  },
  "oklch": {
    "l": 0.41423,
    "c": 0.1516,
    "h": 330.4
  },
  "luminance": 0.06132
}

Semantic roles & 50–950 ramp

primary
#762171
secondary
#4AA94F
accent
#E05148
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #762171

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

Preview Lab → · Contrast checker → · Palette generator →

#762171 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva