#797151#797151

#797151 is a mid, muted yellow. Relative luminance 0.165; OKLCH L 54.7% C 0.048 H 95.8°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#797151
RGBrgb(121, 113, 81)
HSLhsl(48, 20%, 40%)
HSVhsv(48, 33%, 47%)
CMYKcmyk(0%, 6.6%, 33.1%, 52.5%)
CIE-LABlab(47.58, -2.23, 18.92)
CIE-LCHlch(47.58, 19.05, 96.71°)
OKLaboklab(54.74% -0.0048 0.0474)
OKLCHoklch(54.74% 0.048 95.8)
XYZxyz(15.2757, 16.4697, 10.1573)
Luminance0.1647 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797151 #515979
analogous
#795D51 #797151 #6D7951
triadic
#797151 #517971 #715179
tetradic
#797151 #51795D #515979 #79516D
square
#797151 #51795D #515979 #79516D
split-complementary
#797151 #516D79 #5D5179
monochromatic
#302D20 #544F38 #797151 #9C926B #B5AD90

Accessibility & contrast

On white

4.89
#797151 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#797151 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797151
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797151#FFFFFF#000000##FFFFFF
##7971511.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776F4F
Deuteranopia (green-blind)
#7A7252
Tritanopia (blue-blind)
#7F6C69
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #797151;
/* rgb */ color: rgb(121, 113, 81);
/* oklch */ color: oklch(54.7% 0.048 95.8);
Tailwind
colors: {
  custom: {
    50: '#a09982',
    500: '#797151',
    950: '#000000',
  },
}
SCSS
$custom: #797151;
$custom-light: #a09982;
$custom-dark: #000000;
JSON
{
  "hex": "#797151",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 81
  },
  "hsl": {
    "h": 48,
    "s": 19.802,
    "l": 39.608
  },
  "oklch": {
    "l": 0.54739,
    "c": 0.04761,
    "h": 95.8
  },
  "luminance": 0.16469
}

Semantic roles & 50–950 ramp

primary
#797151
secondary
#848AA2
accent
#7CBC6B
background
#F9F9F7
surface
#F2F2EE
border
#CCCCC9
text
#0F0E0A
muted
#7E7E7C

Preview Lab

Preview with #797151

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

Preview Lab → · Contrast checker → · Palette generator →

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