#792287#792287

#792287 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.4% C 0.171 H 321.7°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#792287
RGBrgb(121, 34, 135)
HSLhsl(292, 60%, 33%)
HSVhsv(292, 75%, 53%)
CMYKcmyk(10.4%, 74.8%, 0%, 47.1%)
CIE-LABlab(31.71, 50.83, -37.85)
CIE-LCHlch(31.71, 63.37, 323.33°)
OKLaboklab(43.36% 0.1342 -0.1058)
OKLCHoklch(43.36% 0.171 321.7)
XYZxyz(12.8299, 6.9590, 23.5844)
Luminance0.0696 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792287 #308722
analogous
#462287 #792287 #872262
triadic
#792287 #877922 #228779
tetradic
#792287 #874622 #308722 #226287
square
#792287 #874622 #308722 #226287
split-complementary
#792287 #628722 #228746
monochromatic
#210925 #4D1656 #792287 #A52EB8 #C150D3

Accessibility & contrast

On white

8.78
#792287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#792287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792287
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792287#FFFFFF#000000##FFFFFF
##7922871.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#2F4E85
Tritanopia (blue-blind)
#7A3553
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #792287;
/* rgb */ color: rgb(121, 34, 135);
/* oklch */ color: oklch(43.4% 0.171 321.7);
Tailwind
colors: {
  custom: {
    50: '#a367aa',
    500: '#792287',
    950: '#000000',
  },
}
SCSS
$custom: #792287;
$custom-light: #a367aa;
$custom-dark: #000000;
JSON
{
  "hex": "#792287",
  "rgb": {
    "r": 121,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 291.683,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43362,
    "c": 0.17088,
    "h": 321.7
  },
  "luminance": 0.06958
}

Semantic roles & 50–950 ramp

primary
#792287
secondary
#5DB74E
accent
#E3455B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #792287

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

Preview Lab → · Contrast checker → · Palette generator →

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