#76227C#76227C

#76227C is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.2% C 0.160 H 325.1°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#76227C
RGBrgb(118, 34, 124)
HSLhsl(296, 57%, 31%)
HSVhsv(296, 73%, 49%)
CMYKcmyk(4.8%, 72.6%, 0%, 51.4%)
CIE-LABlab(30.52, 48.05, -32.89)
CIE-LCHlch(30.52, 58.23, 325.61°)
OKLaboklab(42.19% 0.131 -0.0915)
OKLCHoklch(42.19% 0.16 325.1)
XYZxyz(11.6811, 6.4516, 19.6949)
Luminance0.0645 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#76227C #287C22
analogous
#49227C #76227C #7C2255
triadic
#76227C #7C7622 #227C76
tetradic
#76227C #7C4922 #287C22 #22557C
square
#76227C #7C4922 #287C22 #22557C
split-complementary
#76227C #557C22 #227C49
monochromatic
#1B081C #48154C #76227C #A42FAC #C54BCE

Accessibility & contrast

On white

9.17
#76227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#76227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #76227C
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##76227C#FFFFFF#000000##FFFFFF
##76227C1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A417F
Deuteranopia (green-blind)
#344B7A
Tritanopia (blue-blind)
#79314C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #76227c;
/* rgb */ color: rgb(118, 34, 124);
/* oklch */ color: oklch(42.2% 0.160 325.1);
Tailwind
colors: {
  custom: {
    50: '#a166a2',
    500: '#76227c',
    950: '#000000',
  },
}
SCSS
$custom: #76227c;
$custom-light: #a166a2;
$custom-dark: #000000;
JSON
{
  "hex": "#76227c",
  "rgb": {
    "r": 118,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 296,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42192,
    "c": 0.15974,
    "h": 325.1
  },
  "luminance": 0.06451
}

Semantic roles & 50–950 ramp

primary
#76227C
secondary
#52AF4B
accent
#E04852
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #76227C

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

Preview Lab → · Contrast checker → · Palette generator →

#76227C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva