#795478#795478

#795478 is a mid, moderate purple. Relative luminance 0.118; OKLCH L 49.9% C 0.072 H 327.5°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#795478
RGBrgb(121, 84, 120)
HSLhsl(302, 18%, 40%)
HSVhsv(302, 31%, 47%)
CMYKcmyk(0%, 30.6%, 0.8%, 52.5%)
CIE-LABlab(40.84, 21.85, -14.31)
CIE-LCHlch(40.84, 26.11, 326.78°)
OKLaboklab(49.86% 0.0607 -0.0387)
OKLCHoklch(49.86% 0.072 327.5)
XYZxyz(14.4453, 11.7622, 19.2751)
Luminance0.1176 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795478 #547955
analogous
#685479 #795478 #795465
triadic
#795478 #787954 #547879
tetradic
#795478 #796854 #547955 #546579
square
#795478 #796854 #547955 #546579
split-complementary
#795478 #657954 #547968
monochromatic
#312230 #553B54 #795478 #9B6F9A #B493B3

Accessibility & contrast

On white

6.26
#795478 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#795478 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795478
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795478#FFFFFF#000000##FFFFFF
##7954781.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#525D79
Deuteranopia (green-blind)
#5B6277
Tritanopia (blue-blind)
#7B5761
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #795478;
/* rgb */ color: rgb(121, 84, 120);
/* oklch */ color: oklch(49.9% 0.072 327.5);
Tailwind
colors: {
  custom: {
    50: '#a0849f',
    500: '#795478',
    950: '#000000',
  },
}
SCSS
$custom: #795478;
$custom-light: #a0849f;
$custom-dark: #000000;
JSON
{
  "hex": "#795478",
  "rgb": {
    "r": 121,
    "g": 84,
    "b": 120
  },
  "hsl": {
    "h": 301.622,
    "s": 18.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.49859,
    "c": 0.07193,
    "h": 327.5
  },
  "luminance": 0.11762
}

Semantic roles & 50–950 ramp

primary
#795478
secondary
#87A288
accent
#BB6F6D
background
#F9F8F9
surface
#F2EFF2
border
#CCCACC
text
#0F0B0E
muted
#7E7C7E

Preview Lab

Preview with #795478

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

Preview Lab → · Contrast checker → · Palette generator →

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