#792174#792174

#792174 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.1% C 0.156 H 330.4°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#792174
RGBrgb(121, 33, 116)
HSLhsl(303, 57%, 30%)
HSVhsv(303, 73%, 47%)
CMYKcmyk(0%, 72.7%, 4.1%, 52.5%)
CIE-LABlab(30.43, 47.73, -27.95)
CIE-LCHlch(30.43, 55.31, 329.65°)
OKLaboklab(42.08% 0.1354 -0.077)
OKLCHoklch(42.08% 0.156 330.4)
XYZxyz(11.5813, 6.4145, 17.1478)
Luminance0.0641 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792174 #217926
analogous
#522179 #792174 #792148
triadic
#792174 #747921 #217479
tetradic
#792174 #795221 #217926 #214879
square
#792174 #795221 #217926 #214879
split-complementary
#792174 #487921 #217952
monochromatic
#190718 #491446 #792174 #A92EA2 #CD47C5

Accessibility & contrast

On white

9.20
#792174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #792174
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792174#FFFFFF#000000##FFFFFF
##7921741.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184076
Deuteranopia (green-blind)
#3B4C72
Tritanopia (blue-blind)
#7E2C48
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #792174;
/* rgb */ color: rgb(121, 33, 116);
/* oklch */ color: oklch(42.1% 0.156 330.4);
Tailwind
colors: {
  custom: {
    50: '#a3659c',
    500: '#792174',
    950: '#000000',
  },
}
SCSS
$custom: #792174;
$custom-light: #a3659c;
$custom-dark: #000000;
JSON
{
  "hex": "#792174",
  "rgb": {
    "r": 121,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 303.409,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42077,
    "c": 0.15579,
    "h": 330.4
  },
  "luminance": 0.06414
}

Semantic roles & 50–950 ramp

primary
#792174
secondary
#4AAC4F
accent
#E05047
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #792174

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

Preview Lab → · Contrast checker → · Palette generator →

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