#797247#797247

#797247 is a mid, moderate yellow. Relative luminance 0.166; OKLCH L 54.8% C 0.062 H 100.2°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#797247
RGBrgb(121, 114, 71)
HSLhsl(52, 26%, 38%)
HSVhsv(52, 41%, 47%)
CMYKcmyk(0%, 5.8%, 41.3%, 52.5%)
CIE-LABlab(47.69, -4.10, 24.80)
CIE-LCHlch(47.69, 25.14, 99.39°)
OKLaboklab(54.77% -0.0109 0.0607)
OKLCHoklch(54.77% 0.062 100.2)
XYZxyz(15.0401, 16.5549, 8.3632)
Luminance0.1656 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797247 #474E79
analogous
#795947 #797247 #677947
triadic
#797247 #477972 #724779
tetradic
#797247 #477959 #474E79 #794767
square
#797247 #477959 #474E79 #794767
split-complementary
#797247 #476779 #594779
monochromatic
#2C291A #524E30 #797247 #A0965E #B7B084

Accessibility & contrast

On white

4.87
#797247 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#797247 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797247
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797247#FFFFFF#000000##FFFFFF
##7972471.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6F44
Deuteranopia (green-blind)
#7C7249
Tritanopia (blue-blind)
#806C67
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #797247;
/* rgb */ color: rgb(121, 114, 71);
/* oklch */ color: oklch(54.8% 0.062 100.2);
Tailwind
colors: {
  custom: {
    50: '#a19a7b',
    500: '#797247',
    950: '#000000',
  },
}
SCSS
$custom: #797247;
$custom-light: #a19a7b;
$custom-dark: #000000;
JSON
{
  "hex": "#797247",
  "rgb": {
    "r": 121,
    "g": 114,
    "b": 71
  },
  "hsl": {
    "h": 51.6,
    "s": 26.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.54767,
    "c": 0.06167,
    "h": 100.2
  },
  "luminance": 0.16555
}

Semantic roles & 50–950 ramp

primary
#797247
secondary
#797FA3
accent
#72C265
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0E09
muted
#7F7E7B

Preview Lab

Preview with #797247

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

Preview Lab → · Contrast checker → · Palette generator →

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