#792497#792497

#792497 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.7% C 0.183 H 315.5°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#792497
RGBrgb(121, 36, 151)
HSLhsl(284, 61%, 37%)
HSVhsv(284, 76%, 59%)
CMYKcmyk(19.9%, 76.2%, 0%, 40.8%)
CIE-LABlab(33.05, 53.26, -45.55)
CIE-LCHlch(33.05, 70.08, 319.46°)
OKLaboklab(44.66% 0.1305 -0.1284)
OKLCHoklch(44.66% 0.183 315.5)
XYZxyz(14.1010, 7.5616, 29.9889)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792497 #429724
analogous
#402497 #792497 #97247C
triadic
#792497 #977924 #249779
tetradic
#792497 #974024 #429724 #247C97
square
#792497 #974024 #429724 #247C97
split-complementary
#792497 #7C9724 #249740
monochromatic
#2A0C34 #511866 #792497 #A130C8 #B85DD8

Accessibility & contrast

On white

8.36
#792497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#792497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792497
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792497#FFFFFF#000000##FFFFFF
##7924971.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#215094
Tritanopia (blue-blind)
#773D5C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #792497;
/* rgb */ color: rgb(121, 36, 151);
/* oklch */ color: oklch(44.7% 0.183 315.5);
Tailwind
colors: {
  custom: {
    50: '#a468b6',
    500: '#792497',
    950: '#000000',
  },
}
SCSS
$custom: #792497;
$custom-light: #a468b6;
$custom-dark: #000000;
JSON
{
  "hex": "#792497",
  "rgb": {
    "r": 121,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 284.348,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.44657,
    "c": 0.18309,
    "h": 315.5
  },
  "luminance": 0.07561
}

Semantic roles & 50–950 ramp

primary
#792497
secondary
#74BD5A
accent
#E5436D
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #792497

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

Preview Lab → · Contrast checker → · Palette generator →

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