#795174#795174

#795174 is a mid, moderate purple. Relative luminance 0.112; OKLCH L 49.1% C 0.074 H 331.1°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#795174
RGBrgb(121, 81, 116)
HSLhsl(308, 20%, 40%)
HSVhsv(308, 33%, 47%)
CMYKcmyk(0%, 33.1%, 4.1%, 52.5%)
CIE-LABlab(39.93, 22.84, -13.22)
CIE-LCHlch(39.93, 26.39, 329.93°)
OKLaboklab(49.12% 0.0644 -0.0356)
OKLCHoklch(49.12% 0.074 331.1)
XYZxyz(13.9798, 11.2113, 17.9472)
Luminance0.1121 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795174 #517956
analogous
#6A5179 #795174 #795160
triadic
#795174 #747951 #517479
tetradic
#795174 #796A51 #517956 #516079
square
#795174 #796A51 #517956 #516079
split-complementary
#795174 #607951 #51796A
monochromatic
#30202E #543851 #795174 #9C6B96 #B590B0

Accessibility & contrast

On white

6.48
#795174 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#795174 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795174
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795174#FFFFFF#000000##FFFFFF
##7951741.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#505B75
Deuteranopia (green-blind)
#5A6073
Tritanopia (blue-blind)
#7C535E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #795174;
/* rgb */ color: rgb(121, 81, 116);
/* oklch */ color: oklch(49.1% 0.074 331.1);
Tailwind
colors: {
  custom: {
    50: '#a0829c',
    500: '#795174',
    950: '#000000',
  },
}
SCSS
$custom: #795174;
$custom-light: #a0829c;
$custom-dark: #000000;
JSON
{
  "hex": "#795174",
  "rgb": {
    "r": 121,
    "g": 81,
    "b": 116
  },
  "hsl": {
    "h": 307.5,
    "s": 19.802,
    "l": 39.608
  },
  "oklch": {
    "l": 0.49122,
    "c": 0.07362,
    "h": 331.1
  },
  "luminance": 0.11211
}

Semantic roles & 50–950 ramp

primary
#795174
secondary
#84A288
accent
#BC766B
background
#F9F8F9
surface
#F2EFF2
border
#CCCACC
text
#0F0A0E
muted
#7E7C7E

Preview Lab

Preview with #795174

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

Preview Lab → · Contrast checker → · Palette generator →

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