#797148#797148

#797148 is a mid, muted yellow. Relative luminance 0.163; OKLCH L 54.6% C 0.059 H 98.5°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#797148
RGBrgb(121, 113, 72)
HSLhsl(50, 25%, 38%)
HSVhsv(50, 40%, 47%)
CMYKcmyk(0%, 6.6%, 40.5%, 52.5%)
CIE-LABlab(47.42, -3.41, 23.88)
CIE-LCHlch(47.42, 24.13, 98.12°)
OKLaboklab(54.56% -0.0088 0.0587)
OKLCHoklch(54.56% 0.059 98.5)
XYZxyz(14.9603, 16.3435, 8.4962)
Luminance0.1634 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797148 #485079
analogous
#795848 #797148 #687948
triadic
#797148 #487971 #714879
tetradic
#797148 #487958 #485079 #794868
square
#797148 #487958 #485079 #794868
split-complementary
#797148 #486879 #584879
monochromatic
#2C291A #534D31 #797148 #9F955F #B6AE85

Accessibility & contrast

On white

4.92
#797148 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#797148 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797148
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797148#FFFFFF#000000##FFFFFF
##7971481.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796F45
Deuteranopia (green-blind)
#7B724A
Tritanopia (blue-blind)
#806B67
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #797148;
/* rgb */ color: rgb(121, 113, 72);
/* oklch */ color: oklch(54.6% 0.059 98.5);
Tailwind
colors: {
  custom: {
    50: '#a0997b',
    500: '#797148',
    950: '#000000',
  },
}
SCSS
$custom: #797148;
$custom-light: #a0997b;
$custom-dark: #000000;
JSON
{
  "hex": "#797148",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 72
  },
  "hsl": {
    "h": 50.204,
    "s": 25.389,
    "l": 37.843
  },
  "oklch": {
    "l": 0.54557,
    "c": 0.0593,
    "h": 98.5
  },
  "luminance": 0.16343
}

Semantic roles & 50–950 ramp

primary
#797148
secondary
#7A81A2
accent
#75C266
background
#F9F9F7
surface
#F2F2EE
border
#CCCCC9
text
#0F0E09
muted
#7E7E7B

Preview Lab

Preview with #797148

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

Preview Lab → · Contrast checker → · Palette generator →

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