#792271#792271

#792271 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.0% C 0.152 H 331.9°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#792271
RGBrgb(121, 34, 113)
HSLhsl(306, 56%, 30%)
HSVhsv(306, 72%, 47%)
CMYKcmyk(0%, 71.9%, 6.6%, 52.5%)
CIE-LABlab(30.41, 46.83, -26.08)
CIE-LCHlch(30.41, 53.60, 330.88°)
OKLaboklab(42% 0.1341 -0.0717)
OKLCHoklch(42% 0.152 331.9)
XYZxyz(11.4378, 6.4022, 16.2529)
Luminance0.0640 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792271 #22792A
analogous
#552279 #792271 #792245
triadic
#792271 #717922 #227179
tetradic
#792271 #795522 #22792A #224579
square
#792271 #795522 #22792A #224579
split-complementary
#792271 #457922 #227955
monochromatic
#190718 #491544 #792271 #A92F9E #CC49C0

Accessibility & contrast

On white

9.21
#792271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#792271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792271
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792271#FFFFFF#000000##FFFFFF
##7922711.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4073
Deuteranopia (green-blind)
#3D4C6F
Tritanopia (blue-blind)
#7E2B47
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #792271;
/* rgb */ color: rgb(121, 34, 113);
/* oklch */ color: oklch(42.0% 0.152 331.9);
Tailwind
colors: {
  custom: {
    50: '#a3669a',
    500: '#792271',
    950: '#000000',
  },
}
SCSS
$custom: #792271;
$custom-light: #a3669a;
$custom-dark: #000000;
JSON
{
  "hex": "#792271",
  "rgb": {
    "r": 121,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 305.517,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42002,
    "c": 0.15207,
    "h": 331.9
  },
  "luminance": 0.06401
}

Semantic roles & 50–950 ramp

primary
#792271
secondary
#4BAC54
accent
#DF5648
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #792271

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

Preview Lab → · Contrast checker → · Palette generator →

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