#792278#792278

#792278 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.4% C 0.158 H 328.4°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#792278
RGBrgb(121, 34, 120)
HSLhsl(301, 56%, 30%)
HSVhsv(301, 72%, 47%)
CMYKcmyk(0%, 71.9%, 0.8%, 52.5%)
CIE-LABlab(30.80, 48.05, -29.91)
CIE-LCHlch(30.80, 56.60, 328.10°)
OKLaboklab(42.41% 0.1345 -0.0827)
OKLCHoklch(42.41% 0.158 328.4)
XYZxyz(11.8472, 6.5659, 18.4090)
Luminance0.0657 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792278 #227923
analogous
#4F2279 #792278 #79224C
triadic
#792278 #787922 #227879
tetradic
#792278 #794F22 #227923 #224C79
square
#792278 #794F22 #227923 #224C79
split-complementary
#792278 #4C7922 #22794F
monochromatic
#190719 #491549 #792278 #A92FA7 #CC49CA

Accessibility & contrast

On white

9.08
#792278 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#792278 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792278
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792278#FFFFFF#000000##FFFFFF
##7922781.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15417A
Deuteranopia (green-blind)
#394C76
Tritanopia (blue-blind)
#7D2E4A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #792278;
/* rgb */ color: rgb(121, 34, 120);
/* oklch */ color: oklch(42.4% 0.158 328.4);
Tailwind
colors: {
  custom: {
    50: '#a3669f',
    500: '#792278',
    950: '#000000',
  },
}
SCSS
$custom: #792278;
$custom-light: #a3669f;
$custom-dark: #000000;
JSON
{
  "hex": "#792278",
  "rgb": {
    "r": 121,
    "g": 34,
    "b": 120
  },
  "hsl": {
    "h": 300.69,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42411,
    "c": 0.15788,
    "h": 328.4
  },
  "luminance": 0.06565
}

Semantic roles & 50–950 ramp

primary
#792278
secondary
#4BAC4C
accent
#DF4A48
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #792278

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

Preview Lab → · Contrast checker → · Palette generator →

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