#762271#762271

#762271 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.5% C 0.150 H 330.4°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#762271
RGBrgb(118, 34, 113)
HSLhsl(304, 55%, 30%)
HSVhsv(304, 71%, 46%)
CMYKcmyk(0%, 71.2%, 4.2%, 53.7%)
CIE-LABlab(29.88, 46.06, -26.94)
CIE-LCHlch(29.88, 53.36, 329.68°)
OKLaboklab(41.52% 0.1307 -0.0742)
OKLCHoklch(41.52% 0.15 330.4)
XYZxyz(11.0238, 6.1887, 16.2335)
Luminance0.0619 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#762271 #227627
analogous
#512276 #762271 #762247
triadic
#762271 #717622 #227176
tetradic
#762271 #765122 #227627 #224776
square
#762271 #765122 #227627 #224776
split-complementary
#762271 #477622 #227651
monochromatic
#180717 #461444 #762271 #A6309E #CA48C3

Accessibility & contrast

On white

9.39
#762271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#762271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #762271
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##762271#FFFFFF#000000##FFFFFF
##7622711.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3F73
Deuteranopia (green-blind)
#3A4A6F
Tritanopia (blue-blind)
#7B2C46
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #762271;
/* rgb */ color: rgb(118, 34, 113);
/* oklch */ color: oklch(41.5% 0.150 330.4);
Tailwind
colors: {
  custom: {
    50: '#a0659a',
    500: '#762271',
    950: '#000000',
  },
}
SCSS
$custom: #762271;
$custom-light: #a0659a;
$custom-dark: #000000;
JSON
{
  "hex": "#762271",
  "rgb": {
    "r": 118,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 303.571,
    "s": 55.263,
    "l": 29.804
  },
  "oklch": {
    "l": 0.41524,
    "c": 0.1503,
    "h": 330.4
  },
  "luminance": 0.06188
}

Semantic roles & 50–950 ramp

primary
#762271
secondary
#4BA950
accent
#DF5249
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #762271

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

Preview Lab → · Contrast checker → · Palette generator →

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